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

import "testing"

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