Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 466 Bytes
default: test
.PHONY: lint
lint:
go fmt . && \
go fmt ./examples && \
go vet && \
golint $$(go list ./...)
.PHONY: doc
doc:
@echo GoDoc link: http://localhost:6060/pkg/github.com/ztrue/tracerr
godoc -http=:6060
.PHONY: test
test:
go test -cover -v
.PHONY: coverage
coverage:
go test -coverprofile=coverage.out && \
go tool cover -func=coverage.out && \
go tool cover -html=coverage.out
.PHONY: bench
bench:
GOMAXPROCS=1 go test -bench=. -benchmem
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.