Skip to content

Commit

Permalink
tools for cmd line coverage work
Browse files Browse the repository at this point in the history
  • Loading branch information
lainio committed Oct 5, 2024
1 parent bbce22d commit d47a5c8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,14 @@ test_cov: test_cov_out
test_cov_pc_assert:
go tool cover -func=coverage.txt | ag assert

test_cov_zero:
go tool cover -func=coverage.txt | ag '\:\s*[A-Z]+.*\s+0\.0%'

test_cov_assert_zero:
go tool cover -func=coverage.txt | ag 'assert\/.*\:\s*[A-Z]+.*\s+0\.0%'

test_cov_pc:
go tool cover -func=coverage.txt

lint:
@golangci-lint run

.PHONY: check

0 comments on commit d47a5c8

Please sign in to comment.