argh/Makefile
2022-11-08 19:26:23 -05:00

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