summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-14 12:58:17 -0600
committerJeff Carr <[email protected]>2024-01-14 12:58:17 -0600
commit7c14bddce3a8e270a75e4a6d4416371931134fcd (patch)
treec41d189abd94bf96dc8729fad9222917ad78eec8
parenta502f839a130df70d9508f731b8cf06c19fa71b9 (diff)
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--.gitignore3
-rw-r--r--Makefile4
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 0026861..cdd84aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,9 @@
*.a
*.so
+#test files
+profile.cov
+
# Folders
_obj
_test
diff --git a/Makefile b/Makefile
index e20adb9..52033ae 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,10 @@ all:
@echo go-spew is a great tool. thanks dave!
@echo
+test:
+ go test -v -race -tags safe ./
+ go test -v -race -tags testcgo ./ -covermode=atomic -coverprofile=profile.cov
+
redomod:
rm -f go.*
GO111MODULE= go mod init