-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 803 Bytes
/
Makefile
File metadata and controls
36 lines (24 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: test-slow test lint fmt vet bench bench-profile bench-long bench-comparative pre-commit
test-slow:
go test ./... --race --count 1
test:
go test --count 1 ./...
lint:
golangci-lint run
fmt:
go fmt ./...
vet:
go vet ./...
bench:
cd benchmarks && go test -bench=BenchmarkAllScenarios -benchmem
bench-profile:
cd benchmarks && go test -bench=BenchmarkAllScenarios -benchmem -cpuprofile=cpu.prof -memprofile=mem.prof
bench-long:
cd benchmarks && go test -bench=BenchmarkAllScenarios -benchmem -count 10 > results.txt
bench-comparative:
cd benchmarks && go test -bench=BenchmarkComparativeAll -benchmem -count 10 > results_comparative.txt
pre-commit:
pre-commit run --all-files
cover:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html