aboutsummaryrefslogtreecommitdiff
path: root/test/file_test.go
blob: babee27f413cc742bb54b54d5600e687b316c86a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package test

import (
	"testing"

	"github.com/coredns/coredns/plugin/test"
)

func TestTempFile(t *testing.T) {
	t.Parallel()
	_, f, e := test.TempFile(".", "test")
	if e != nil {
		t.Fatalf("Failed to create temp file: %s", e)
	}
	defer f()
}