mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-05 00:15:58 +00:00
21 lines
286 B
Go
21 lines
286 B
Go
|
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)
|
||
|
}
|