aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-03-24 07:38:27 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-03-24 07:38:27 -0600
commit3c1ecb925ef3748ba25111599a5d3a439224204b (patch)
tree673d5901596dd4760ebcc3ea2409f60e2d5cf967 /Makefile
parentCheck errors from file close in DB.CopyFile (diff)
downloaddedo-3c1ecb925ef3748ba25111599a5d3a439224204b.tar.gz
dedo-3c1ecb925ef3748ba25111599a5d3a439224204b.tar.xz
Resolve remaining errcheck warnings.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4cc71b6..2d0fd3f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,10 +18,15 @@ cpuprofile: fmt
@go test -c
@./bolt.test -test.v -test.run="^X" -test.bench=$(BENCH) -test.cpuprofile cpu.prof
+# go get github.com/kisielk/errcheck
+errcheck:
+ @echo "=== errcheck ==="
+ @errcheck github.com/boltdb/bolt
+
fmt:
@go fmt ./...
-test: fmt
+test: fmt errcheck
@echo "=== TESTS ==="
@go test -v -cover -test.run=$(TEST)
@echo ""