1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-16 13:28:37 +00:00
tar-split/check_test.go

22 lines
356 B
Go
Raw Normal View History

package mtree
import "testing"
func TestCheck(t *testing.T) {
dh, err := Walk(".", nil, append(DefaultKeywords, "sha1"))
if err != nil {
t.Fatal(err)
}
res, err := Check(".", dh)
if err != nil {
t.Fatal(err)
}
if len(res.Failures) > 0 {
t.Errorf("%#v", res)
}
}
// TODO make a directory, walk it, check it, modify it and ensure it fails