blob: 761ed14636cf6cffa4346030690964fad870f842 (
plain)
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
|
.PHONY=all test testjson vet vetjson cov covhtml clean
all:
go1.18beta1 build -ldflags='-s -w'
test:
go1.18beta1 test -cover ./...
testjson:
go1.18beta1 test -json -cover ./...
vet:
go1.18beta1 vet ./...
vetjson:
go1.18beta1 vet -json ./...
cov:
go1.18beta1 test -coverprofile=coverage.out ./... && \
go1.18beta1 tool cover -func=coverage.out
covhtml:
go1.18beta1 test -coverprofile=coverage.out ./... && \
go1.18beta1 tool cover -html=coverage.out -o coverage.html && \
xdg-open ./coverage.html
clean:
go1.18beta1 clean
|