Skip to content

Commit d47a5c8

Browse files
committed
tools for cmd line coverage work
1 parent bbce22d commit d47a5c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ test_cov: test_cov_out
160160
test_cov_pc_assert:
161161
go tool cover -func=coverage.txt | ag assert
162162

163+
test_cov_zero:
164+
go tool cover -func=coverage.txt | ag '\:\s*[A-Z]+.*\s+0\.0%'
165+
166+
test_cov_assert_zero:
167+
go tool cover -func=coverage.txt | ag 'assert\/.*\:\s*[A-Z]+.*\s+0\.0%'
168+
163169
test_cov_pc:
164170
go tool cover -func=coverage.txt
165171

166172
lint:
167173
@golangci-lint run
168-
169-
.PHONY: check
170-

0 commit comments

Comments
 (0)