-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
23 lines (17 loc) · 613 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Makefile Commands:"
@echo "----------------------------------------------------------------"
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@echo "----------------------------------------------------------------"
bench-tests: ## run benchmarks
go test -v -race -bench=.
unit-tests: ## run unit tests
go test -cover -v -coverprofile cover.out -race .
coverage: ## show test coverage
go tool cover -func cover.out
gen: ## generate docs
@go generate ./...
pprof: ## analyze a file with pprof
go tool pprof $(file)