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

import "testing"

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