summaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go
new file mode 100644
index 0000000..dfb296e
--- /dev/null
+++ b/main_test.go
@@ -0,0 +1,15 @@
+package main
+
+/*
+//Go version 1.4+ only.
+
+import (
+ "os"
+ "testing"
+)
+
+func TestMain(m *testing.M) {
+ InitDB()
+ os.Exit(m.Run())
+}
+*/