Skip to content

Commit

Permalink
test perm
Browse files Browse the repository at this point in the history
  • Loading branch information
Wwwsylvia committed Jan 13, 2025
1 parent bd89277 commit 41dfeaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/file/utils_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func Test_extractTarDirectory(t *testing.T) {
name: "extract valid files",
tarData: createTar(t, []tarEntry{
{name: "base/", mode: os.ModeDir},
{name: "base/test.txt", content: "hello world"},
{name: "base/file_symlink", linkname: "test.txt", mode: os.ModeSymlink},
{name: "base/file_hardlink", linkname: "test.txt", isHardLink: true},
{name: "base/test.txt", content: "hello world", mode: 0666},
{name: "base/file_symlink", linkname: "test.txt", mode: os.ModeSymlink & 0666},
{name: "base/file_hardlink", linkname: "test.txt", mode: 0666, isHardLink: true},
}),
wantFiles: map[string]string{
"base/test.txt": "hello world",
Expand Down

0 comments on commit 41dfeaf

Please sign in to comment.