Added directory test
This commit is contained in:
parent
e93b797dc6
commit
c7354b8613
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user