Files
kopia/internal/tempfile/tempfile_linux_fallback_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

17 lines
418 B
Go

//go:build linux
// +build linux
package tempfile
import (
"testing"
)
// Explicitly test the create fallback function.
// This test only applies to Linux to explicitly test the fallback function.
// In other unix platforms the fallback is the default implementation, so it
// is already tested in the tests for the Create function.
func TestCreateFallback(t *testing.T) {
VerifyTempfile(t, createUnixFallback)
}