Added directory test

This commit is contained in:
Eduard Urbach 2024-06-09 14:35:23 +02:00
parent 18993e0855
commit 8b595ef3ce
Signed by: eduard
GPG key ID: 49226B848C78F6C8

View file

@ -17,3 +17,8 @@ func TestWalk(t *testing.T) {
assert.Contains(t, files, "Walk.go") assert.Contains(t, files, "Walk.go")
assert.Contains(t, files, "Walk_test.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)
}