mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 18:57:10 +01:00
28 lines
466 B
Makefile
28 lines
466 B
Makefile
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
|