Added more tests

This commit is contained in:
2024-07-17 19:50:46 +02:00
parent 8b2cdfa841
commit 68e21c96e3
5 changed files with 65 additions and 3 deletions

View File

@ -19,7 +19,12 @@ func TestWalk(t *testing.T) {
assert.Contains(t, files, "Walk_test.go")
}
func TestNonExisting(t *testing.T) {
func TestWalkFile(t *testing.T) {
err := fs.Walk("Walk.go", func(file string) {})
assert.NotNil(t, err)
}
func TestWalkNonExisting(t *testing.T) {
err := fs.Walk("does-not-exist", func(file string) {})
assert.NotNil(t, err)
}