Skip to content

Commit

Permalink
Add tests for delete.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Feb 23, 2022
1 parent f388689 commit 18836c6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions fs/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 18836c6

Please sign in to comment.