(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestPanicImmediately(t *testing.T) { |
| 41 | basePath := setupForArchive(t) |
| 42 | if runtime.GOOS == "windows" { // See line 63 |
| 43 | defer t.Cleanup(func() { |
| 44 | cleanUpTemp(basePath) |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | newPath := filepath.Join(basePath, "test.txt") |
| 49 | _, err := os.Stat(newPath) |
| 50 | assert.Nil(t, err) |
| 51 | } |
| 52 | |
| 53 | func setupForArchive(t *testing.T) string { |
| 54 | dir := filepath.ToSlash(t.TempDir()) |
nothing calls this directly
no test coverage detected