Files
kopia/internal/tempfile/tempfile_test.go
Julio López e3fc6e012d refactor(general): leverage os.CreateTemp (#4513)
* use `os.CreateTemp` in `tempfile.CreateAutoDelete`
* refactor `TestTempFile`: add `VerifyTempfile` test helper
* add test for `createUnixFallback`
* rename function to `tempfile.CreateAutoDelete`
* remove the `dir` parameter to `tempfile.CreateAutoDelete`,
  only an empty string was passed, apart from test cases.
* guard against panic in TestShadowCopy
2025-04-22 20:55:11 -07:00

12 lines
182 B
Go

package tempfile_test
import (
"testing"
"github.com/kopia/kopia/internal/tempfile"
)
func TestTempFile(t *testing.T) {
tempfile.VerifyTempfile(t, tempfile.CreateAutoDelete)
}