Close out the repository audit
This commit is contained in:
@@ -7,6 +7,8 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"gitea.maximumdirect.net/eric/weatherreporter/internal/testutil"
|
||||
)
|
||||
|
||||
func TestWriteFileAtomicCreatesParentDirectory(t *testing.T) {
|
||||
@@ -96,9 +98,7 @@ func TestWriteFileAtomicRejectsUnsafeFinalDestinations(t *testing.T) {
|
||||
name: "symbolic link",
|
||||
setup: func(t *testing.T, path string) {
|
||||
t.Helper()
|
||||
if err := os.Symlink(backing, path); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
testutil.RequireSymlink(t, backing, path)
|
||||
},
|
||||
},
|
||||
} {
|
||||
|
||||
Reference in New Issue
Block a user