Added directory test

This commit is contained in:
Eduard Urbach 2024-06-09 14:35:23 +02:00
parent e93b797dc6
commit c7354b8613
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -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)
}