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