2022-11-09 00:26:23 +00:00
|
|
|
BENCHTIME ?= 10s
|
|
|
|
|
2022-07-16 14:22:47 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: test
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f coverage.out
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
go test -v -coverprofile=coverage.out ./...
|
|
|
|
|
2022-11-09 00:26:23 +00:00
|
|
|
.PHONY: bench
|
|
|
|
bench:
|
|
|
|
go test -v -bench . -benchtime $(BENCHTIME) ./...
|
|
|
|
|
2022-07-16 14:22:47 +00:00
|
|
|
.PHONY: show-cover
|
|
|
|
show-cover:
|
|
|
|
go tool cover -func=coverage.out
|