2018-01-16 13:20:59 +00:00
|
|
|
.PHONY: build test bench vet coverage
|
2017-02-17 16:49:51 +00:00
|
|
|
|
|
|
|
build: vet bench
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v -cover -race
|
|
|
|
|
|
|
|
bench:
|
|
|
|
go test -v -cover -race -test.bench=. -test.benchmem
|
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet
|
2018-01-16 13:20:59 +00:00
|
|
|
|
|
|
|
coverage:
|
2018-03-19 15:51:38 +00:00
|
|
|
go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out
|