Makefile 239 B

123456789101112131415
  1. .PHONY: build test bench vet coverage
  2. build: vet bench
  3. test:
  4. go test -v -cover -race
  5. bench:
  6. go test -v -cover -test.bench=. -test.benchmem
  7. vet:
  8. go vet
  9. coverage:
  10. go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out