From 5138a7480454d17a586a8b3dc250536135c63134 Mon Sep 17 00:00:00 2001 From: Zhijie Yang Date: Tue, 3 Dec 2024 18:48:58 +0100 Subject: [PATCH] chore(create_test): update test summaries --- internal/fsutil/create_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/fsutil/create_test.go b/internal/fsutil/create_test.go index f0a9e148..e7730d8d 100644 --- a/internal/fsutil/create_test.go +++ b/internal/fsutil/create_test.go @@ -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", @@ -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", @@ -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", @@ -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.