aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: decd960cea555d21314d27dcd51ab083b9ba52e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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