diff --git a/src/directory/Walk_test.go b/src/directory/Walk_test.go index a4fcda8..f3f64cf 100644 --- a/src/directory/Walk_test.go +++ b/src/directory/Walk_test.go @@ -17,3 +17,8 @@ func TestWalk(t *testing.T) { assert.Contains(t, files, "Walk.go") assert.Contains(t, files, "Walk_test.go") } + +func TestNonExisting(t *testing.T) { + err := directory.Walk("does-not-exist", func(file string) {}) + assert.NotNil(t, err) +}