2019-06-05 22:57:38 +02:00
|
|
|
.PHONY: build test bench vet coverage
|
|
|
|
|
|
|
|
build: vet bench
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v -cover -race
|
|
|
|
|
|
|
|
bench:
|
2020-12-04 20:36:22 +01:00
|
|
|
go test -v -cover -test.bench=. -test.benchmem
|
2019-06-05 22:57:38 +02:00
|
|
|
|
|
|
|
vet:
|
|
|
|
go vet
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out
|