2019-07-14 21:10:20 +02:00
|
|
|
.PHONY: build test bench vet coverage
|
|
|
|
|
|
|
|
build: vet bench
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v -cover -race
|
|
|
|
|
|
|
|
bench:
|
2020-12-04 20:37:10 +01:00
|
|
|
go test -v -cover -test.bench=. -test.benchmem
|
2019-07-14 21:10:20 +02:00
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out
|