Error handling, testing

This commit is contained in:
Jakob Borg
2013-12-20 00:01:34 +01:00
parent eba1c9e649
commit f5987fba32
6 changed files with 207 additions and 35 deletions

View File

@@ -18,7 +18,7 @@ var testdata = []struct {
func TestWalk(t *testing.T) {
m := new(Model)
files := Walk("testdata", m)
files := Walk("testdata", m, false)
if l1, l2 := len(files), len(testdata); l1 != l2 {
t.Fatalf("Incorrect number of walked files %d != %d", l1, l2)