1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2024-12-22 13:56:30 +00:00

check: now the simple test passes

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-04-05 18:13:27 -04:00
parent 34b9f4dc46
commit 9c6b4257f4

View file

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