test: add test for axis

This commit is contained in:
vicanso 2021-12-18 20:09:02 +08:00
parent 9db6bcab1b
commit bf25dad141
7 changed files with 226 additions and 13 deletions

20
Makefile Normal file
View 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/