-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 746 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 746 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
export GO111MODULE=on
.PHONY: default test test-cover test-fuzz bench lint
test:
go test -race -cover ./...
test-cover:
go test -race -coverprofile=test.out ./... && go tool cover --html=test.out
test-fuzz:
go test -fuzz='^FuzzEncode$$' -fuzztime=2m ./base85/...
go test -fuzz='^FuzzDecode$$' -fuzztime=2m ./base85/...
go test -fuzz='^FuzzEncodeWithPadding$$' -fuzztime=2m ./base85/...
go test -fuzz='^FuzzDecodeWithPadding$$' -fuzztime=2m ./base85/...
go test -fuzz='^FuzzStreamRoundTrip$$' -fuzztime=2m ./base85/...
go test -fuzz='^FuzzStreamRoundTripWithPadding$$' -fuzztime=2m ./base85/...
bench:
go test --benchmem -benchtime=10s -bench='Benchmark.*' -run='^$$' ./...
lint:
golangci-lint run --timeout=600s && go vet ./...