Skip to content

Commit b491dcf

Browse files
committed
update Makefile
1 parent 0d10439 commit b491dcf

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Makefile

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
test:
22
go test -v ./...
3+
race:
4+
go test -race ./...
35
cover:
46
go test -coverprofile="cover.out" ./...
57
go tool cover -html="cover.out"
68
covtotal:
79
go test ./... -coverprofile cover.out
8-
go tool cover -func cover.out
10+
go tool cover -func cover.out
11+
covatomic:
12+
go test -race -coverprofile="cover.out" -covermode=atomic ./...
13+
go tool cover -html="cover.out"
14+
deps:
15+
go get -u all
16+
go mod tidy
17+
# Ensure https://github.com/icholy/gomajor is installed.
18+
major:
19+
gomajor get all
20+
go mod tidy

0 commit comments

Comments
 (0)