2020-01-09 20:02:56 +00:00
|
|
|
.PHONY: build test bench vet coverage
|
|
|
|
|
|
|
|
build: vet bench
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v -cover -race
|
|
|
|
|
|
|
|
bench:
|
2020-08-09 22:29:54 +00:00
|
|
|
go test -v -cover -test.bench=. -test.benchmem
|
2020-01-09 20:02:56 +00:00
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out
|