test: add test for axis
This commit is contained in:
parent
9db6bcab1b
commit
bf25dad141
7 changed files with 226 additions and 13 deletions
20
Makefile
Normal file
20
Makefile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
export GO111MODULE = on
|
||||
|
||||
.PHONY: default test test-cover dev hooks
|
||||
|
||||
|
||||
# for test
|
||||
test:
|
||||
go test -race -cover ./...
|
||||
|
||||
test-cover:
|
||||
go test -race -coverprofile=test.out ./... && go tool cover --html=test.out
|
||||
|
||||
bench:
|
||||
go test --benchmem -bench=. ./...
|
||||
|
||||
lint:
|
||||
golangci-lint run
|
||||
|
||||
hooks:
|
||||
cp hooks/* .git/hooks/
|
||||
Loading…
Add table
Add a link
Reference in a new issue