diff options
Diffstat (limited to 'internal/cache/walk_test.go')
-rw-r--r-- | internal/cache/walk_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/cache/walk_test.go b/internal/cache/walk_test.go new file mode 100644 index 000000000..bfe037ff4 --- /dev/null +++ b/internal/cache/walk_test.go @@ -0,0 +1,12 @@ +package cache + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestcleanWalkDirNotExists(t *testing.T) { + err := cleanWalk("/path/that/does/not/exist") + assert.NoError(t, err, "cleanWalk returned an error for a non existing directory") +} |