1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-07-01 05:28:30 +00:00

check: an initial pass at a validation check

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-03-23 16:58:16 -04:00
parent 6db2f462a1
commit 2fd41fb43f
5 changed files with 101 additions and 13 deletions

20
check_test.go Normal file
View file

@ -0,0 +1,20 @@
package mtree
import (
"log"
"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)
}
//log.Fatalf("%#v", dh)
log.Fatalf("%#v", res)
}