mirror of
https://github.com/coredns/coredns.git
synced 2025-08-06 22:37:03 +02:00
14 lines
184 B
Go
14 lines
184 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestTempFile(t *testing.T) {
|
|
_, f, e := TempFile(".", "test")
|
|
if e != nil {
|
|
t.Fatalf("Failed to create temp file: %s", e)
|
|
}
|
|
defer f()
|
|
}
|