diff options
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go new file mode 100644 index 0000000..57db053 --- /dev/null +++ b/main_test.go @@ -0,0 +1,20 @@ +package main + +import ( + "log" + "os" + "testing" +) + +func TestMain(m *testing.M) { + setup() + code := m.Run() + shutdown() + os.Exit(code) +} + +func setup() { + log.SetFlags(log.Lshortfile) +} + +func shutdown() {} |