Skip to content

Commit

Permalink
chore(create_test): update test summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Dec 3, 2024
1 parent 94db780 commit 5138a74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/fsutil/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var createTests = []createTest{{
},
error: `link /[^ ]*/missing-file /[^ ]*/hardlink: no such file or directory`,
}, {
summary: "Hard link is not created if it already exists",
summary: "No error if hard link already exists",
options: fsutil.CreateOptions{
Path: "hardlink",
Link: "file",
Expand All @@ -148,7 +148,7 @@ var createTests = []createTest{{
"/hardlink": "file 0644 3a6eb079",
},
}, {
summary: "Cannot create a hard link if it exists and is not a hard link to target",
summary: "Cannot create a hard link if file exists but differs",
options: fsutil.CreateOptions{
Path: "hardlink",
Link: "file",
Expand Down Expand Up @@ -206,7 +206,7 @@ var createTests = []createTest{{
"/foo": "symlink ./bar",
},
}, {
summary: "The mode of a symlink target is not overridden by the symlink",
summary: "OverrideMode does not follow symlink",
options: fsutil.CreateOptions{
Path: "foo",
Link: "./bar",
Expand Down Expand Up @@ -240,7 +240,7 @@ var createTests = []createTest{{
"/bar": "symlink other",
},
}, {
summary: "Same symlink can be overwritten",
summary: "No error if symlink already exists",
options: fsutil.CreateOptions{
Path: "bar",
// Existing link with same target.
Expand Down

0 comments on commit 5138a74

Please sign in to comment.