gocov: gocov report print total coverage NaN% when totalReached and totalStatements are zero
Closed this issue · 0 comments
wingyplus commented
I found this issue when I ran gocov on package that have not any source file (0 statements).
What's I expect to see:
$ gocov test | gocov report
? github.com/wingyplus/mypkg [no test files]
Total Coverage: 0.00% (0/0)
What's it actual:
$ gocov test | gocov report
? git.linecorp.com/lineman/delivery-service [no test files]
Total Coverage: NaN% (0/0)