-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 593 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 593 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
license:
curl -sL https://liam.sh/-/gh/g/license-header.sh | bash -s
fetch:
go mod download
go mod tidy
up:
go get -u ./... && go mod tidy
cd _examples/ && go get -u ./... && go mod tidy
test:
GORACE="exitcode=1 halt_on_error=1" go test -v -race -timeout 3m -count 3 -cpu 1,4 ./...
cd _examples/ && GORACE="exitcode=1 halt_on_error=1" go test -v -race -timeout 3m -count 3 -cpu 1,4 ./...
fuzz:
go test -fuzz=FuzzScan -timeout=1m
bench:
go test -bench=.
pprof:
go test -bench=. -benchmem -memprofile memprofile.out -cpuprofile profile.out
go tool pprof -http=:8081 profile.out