| 1 |
.PHONY: test test-race-pool test-race-nopool testx lint bench cover |
| 2 |
|
| 3 |
test: |
| 4 |
go test -race -skip=TestCacheCorrectness_ ./... |
| 5 |
|
| 6 |
test-correct-pool: |
| 7 |
go test ./... -run=TestCacheCorrectness_EntryPool -count=1 |
| 8 |
|
| 9 |
test-correct-nopool: |
| 10 |
go test ./... -run=TestCacheCorrectness_NoPool -count=1 -race |
| 11 |
|
| 12 |
testx: |
| 13 |
go test ./... -v -failfast |
| 14 |
|
| 15 |
lint: |
| 16 |
golangci-lint run |
| 17 |
|
| 18 |
cover: |
| 19 |
go test -timeout 2000s -race -coverprofile=cover.out -coverpkg=./... -skip=TestCacheCorrectness_ ./... |
| 20 |
go tool cover -html=cover.out -o cover.html |