mirror of
https://github.com/vbatts/dedupe-linker.git
synced 2024-11-16 05:38:38 +00:00
11 lines
267 B
Go
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)
|
|
}
|
|
}
|