1
0
pool/Makefile

32 lines
418 B
Makefile
Raw Normal View History

2026-03-03 19:50:09 +01:00
sources = $(shell find . -name "*.go")
default: build
build: $(sources)
go build
fmt: $(sources)
go fmt
check: $(sources)
go test -count 1
race: $(source)
go test -count 1 -race
.cover: $(sources)
go test -count 1 -coverprofile .cover
cover: .cover
go tool cover -func .cover
showcover: .cover
go tool cover -html .cover
bench: $(sources)
go test -bench Benchmark -run ^$
clean:
go clean
rm .cover