1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2024-11-16 05:38:38 +00:00
dedupe-linker/base/base_test.go
2014-09-17 09:21:56 -04:00

11 lines
267 B
Go

package base
import "testing"
func TestSumPath(t *testing.T) {
expected := "/var/dedup/blobs/sha1/de/deadbeef"
b := Base{Path: "/var/dedup", HashName: "sha1"}
if bp := b.blobPath("deadbeef"); bp != expected {
t.Errorf("expected %q, got %q", expected, bp)
}
}