Skip to content

Commit 882b211

Browse files
authored
add unittest cover (#471)
* add unittest cover Signed-off-by: yxxhero <[email protected]> * remove -p=1 for cover Signed-off-by: yxxhero <[email protected]> --------- Signed-off-by: yxxhero <[email protected]>
1 parent 85543d6 commit 882b211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ build: lint
3939

4040
.PHONY: test
4141
test:
42-
go test -v ./...
42+
go test -v ./... -coverprofile cover.out -race
43+
go tool cover -func cover.out
4344

4445
.PHONY: bootstrap
4546
bootstrap:

0 commit comments

Comments
 (0)