Makefile
COP=cover.out
.PHONY: vet lint test test-cover clean
vet:
@- go vet ./...
lint: vet
@- golangci-lint run
test: vet
@- go test -race -count 1 -v -coverprofile="$(COP)" ./...
test-cover: test
@- go tool cover -func="$(COP)"
bench:
@- go test -count 1 -bench=. -benchmem -timeout 15m
bench-profile:
@- go test -count 1 -bench=. -benchmem -timeout 15m -cpuprofile=cpu.out -memprofile=mem.out
clean:
@- rm -f "$(COP)"