From c7354b8613b323861473398498a4062f59b5cbe0 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 9 Jun 2024 14:35:23 +0200 Subject: [PATCH] Added directory test --- src/directory/Walk_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/directory/Walk_test.go b/src/directory/Walk_test.go index a4fcda8..f3f64cf 100644 --- a/src/directory/Walk_test.go +++ b/src/directory/Walk_test.go @@ -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) +}