Added directory test
This commit is contained in:
parent
e93b797dc6
commit
c7354b8613
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue