diff --git a/fs/delete_test.go b/fs/delete_test.go index d4466d6a..511289e0 100644 --- a/fs/delete_test.go +++ b/fs/delete_test.go @@ -84,3 +84,19 @@ func TestToDeletedPath(t *testing.T) { return } } + +func TestLogicallyDelete(t *testing.T) { + path := "./delete_test_notfound.go" + err := LogicallyDelete(path) + if err != nil { + t.Errorf("logical delete error %s => %v", path, err) + return + } + + path = "./delete_test_notfound.go.1643351810.deleted" + err = LogicallyDelete(path) + if err != nil { + t.Errorf("logical delete error %s => %v", path, err) + return + } +}