Simple tool to get covered and total lines which might be useful if you're trying to calculate total coverage for multiple projects, some of which are not written in Go.
Please see example for more context.
Same as for any other go binary:
go get -u github.com/yb172/coverage-lines
First run test with -coverprofile
option enabled:
go test ./... -coverprofile=cover.out
And then run coverage-lines
:
coverage-lines cover.out
It will output two numbers: number of covered statements and total number of statements