2017-10-27 19:06:04 +00:00
|
|
|
.PHONY: build test bench vet coverage
|
2016-03-11 03:50:44 +00:00
|
|
|
|
|
|
|
build: vet bench
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v -cover -race
|
|
|
|
|
|
|
|
bench:
|
|
|
|
go test -v -cover -race -test.bench=. -test.benchmem
|
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet
|
2017-10-27 19:06:04 +00:00
|
|
|
|
|
|
|
coverage:
|
2018-07-06 16:09:34 +00:00
|
|
|
go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out
|