Makefile 210B

12345678910111213
  1. all: test
  2. .PHONY: fmt
  3. fmt:
  4. @gofmt -s -l -w *.go
  5. .PHONY: test
  6. test:
  7. go test -v -coverprofile .cover.out ./...
  8. @go tool cover -func=.cover.out
  9. @go tool cover -html=.cover.out -o .cover.html
  10. @rm .cover.out