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:
parent
34b9f4dc46
commit
9c6b4257f4
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue