aboutsummaryrefslogtreecommitdiff
path: root/test/file_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/file_test.go')
-rw-r--r--test/file_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/file_test.go b/test/file_test.go
new file mode 100644
index 000000000..950ea7cff
--- /dev/null
+++ b/test/file_test.go
@@ -0,0 +1,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()
+}