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:
parent
6db2f462a1
commit
2fd41fb43f
5 changed files with 101 additions and 13 deletions
20
check_test.go
Normal file
20
check_test.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue