Skip to content

Commit

Permalink
test : add tests for mergeDeletionCallBack
Browse files Browse the repository at this point in the history
Signed-off-by: satyazzz123 <beherasatyajit716@gmail.com>
  • Loading branch information
satyazzz123 committed Dec 9, 2023
1 parent 28cc7c2 commit 07ac0a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions filesystem/merger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ func TestMergeDeletionCallBack(t *testing.T) {
t.Fatalf("Expected source file to not exist, but got error: %v", err)
}

// Additional checks based on the expected behavior after fixing the source path
// For example, check the state of the destination directory or other behavior

_, destErr := os.Stat(destination)
if !os.IsNotExist(destErr) {
t.Error("Expected destination directory not to exist, but it exists")
}

// Additional checks specific to your expected behavior can be added here

})
}

0 comments on commit 07ac0a7

Please sign in to comment.