mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
* 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
12 lines
182 B
Go
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)
|
|
}
|