21 lines
286 B
Makefile
21 lines
286 B
Makefile
BENCHTIME ?= 10s
|
|
|
|
.PHONY: all
|
|
all: test
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f coverage.out
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test -v -coverprofile=coverage.out ./...
|
|
|
|
.PHONY: bench
|
|
bench:
|
|
go test -v -bench . -benchtime $(BENCHTIME) ./...
|
|
|
|
.PHONY: show-cover
|
|
show-cover:
|
|
go tool cover -func=coverage.out
|