diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..decd960 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +PKG=./... +TEST=. +BENCH=. +COVERPROFILE=/tmp/c.out + +bench: benchpreq + go test -v -test.bench=$(BENCH) ./.bench + +cover: fmt + go test -coverprofile=$(COVERPROFILE) . + go tool cover -html=$(COVERPROFILE) + rm $(COVERPROFILE) + +fmt: + @go fmt ./... + +test: fmt + @go test -v -cover -test.run=$(TEST) $(PKG) + +.PHONY: bench cover fmt test |
