aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test.sh')
-rwxr-xr-xscripts/test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
new file mode 100755
index 0000000..5bbdf6d
--- /dev/null
+++ b/scripts/test.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -eu
+
+main() {
+ go test -race -coverprofile=coverage.out -covermode=atomic ./...
+ go tool cover -func=coverage.out
+}
+
+main "$@"