aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2021-08-24 19:56:14 +0200
committern-peugnet <n.peugnet@free.fr>2021-08-24 19:56:14 +0200
commited80409f2a904e328d2fcef89296a7e53a15a664 (patch)
tree2b3bae49bfd0aa9d898f7e8f782e67b66b675b41 /main_test.go
parentdf6d5f7e24a290718adf8f068649c3bc61f5eb4d (diff)
downloaddna-backup-ed80409f2a904e328d2fcef89296a7e53a15a664.tar.gz
dna-backup-ed80409f2a904e328d2fcef89296a7e53a15a664.zip
add extractNewChunks
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go20
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() {}