2016-03-16 19:59:34 +00:00
|
|
|
package mtree
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestWalk(t *testing.T) {
|
2016-03-17 17:54:59 +00:00
|
|
|
dh, err := Walk(".", nil, append(DefaultKeywords, "xattr"))
|
2016-03-16 19:59:34 +00:00
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
if _, err = dh.WriteTo(os.Stdout); err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
}
|
|
|
|
}
|