Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added test for mergeProcessFileCallBack function #1121

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added variable for empty string
Signed-off-by: satyazzz123 <beherasatyajit716@gmail.com>
  • Loading branch information
satyazzz123 committed Dec 14, 2023
commit b7e6f2231e3fe692f0cab51d4e94e5f7ed3a2a1a
4 changes: 2 additions & 2 deletions filesystem/merger_test.go
Original file line number Diff line number Diff line change
@@ -52,8 +52,8 @@ func TestMergeDeletionCallBack(t *testing.T) {

func TestMergeProcessFileCallBack_SameContent(t *testing.T) {
t.Run("test for source and destination files with same content", func(t *testing.T) {

sourceFile, err := ioutil.TempFile("", "source")
nonExistentPath := ""
sourceFile, err := ioutil.TempFile(nonExistentPath, "source")
if err != nil {
t.Fatalf("Failed to create source file: %v", err)
}