mirror of https://github.com/hak5/bolt.git
21 lines
326 B
Makefile
21 lines
326 B
Makefile
|
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
|