(t *testing.T)
| 51 | } |
| 52 | |
| 53 | func setupForArchive(t *testing.T) string { |
| 54 | dir := filepath.ToSlash(t.TempDir()) |
| 55 | _, err := os.Create(dir + "/test.txt") |
| 56 | if err != nil { |
| 57 | panic(err) |
| 58 | } |
| 59 | |
| 60 | return dir |
| 61 | } |
| 62 | |
| 63 | // TODO Test and potentially remove manual clean-up when go version >= 1.20.0 |
| 64 | // cleanUpTemp is a temporary solution for windows to https://github.com/golang/go/issues/51442. |
no outgoing calls
no test coverage detected