Makefile 198 B

1234567891011
  1. .PHONY: test cover
  2. test:
  3. go get golang.org/x/tools/cmd/cover
  4. go test -cover -v .
  5. bench:
  6. @go test -bench . -benchmem
  7. cover:
  8. go test -coverprofile=coverage.out
  9. go tool cover -html=coverage.out