-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
50 lines (37 loc) · 1014 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.PHONY: example-features
example-features:
@go run ./examples/features/main.go
.PHONY: example-dimensions
example-dimensions:
@go run ./examples/dimensions/main.go
.PHONY: example-updates
example-updates:
@go run ./examples/updates/*.go
.PHONY: example-pagination
example-pagination:
@go run ./examples/pagination/*.go
.PHONY: example-simplest
example-simplest:
@go run ./examples/simplest/*.go
.PHONY: example-simplest
example-sorting:
@go run ./examples/sorting/*.go
.PHONY: test
test:
@go test -race -cover ./table
.PHONY: test-coverage
test-coverage: coverage.out
@go tool cover -html=coverage.out
.PHONY: benchmark
benchmark:
@go test -run=XXX -bench=. -benchmem ./table
.PHONY: lint
lint: ./bin/golangci-lint
@./bin/golangci-lint run ./table
coverage.out: table/*.go go.*
@go test -coverprofile=coverage.out ./table
.PHONY: fmt
fmt:
@go fmt ./...
./bin/golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.44.2