Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

gocov: gocov report print total coverage NaN% when totalReached and totalStatements are zero #84

Closed
wingyplus opened this issue Jun 28, 2019 · 0 comments · Fixed by #85 · May be fixed by manilion/gocov#1
Closed

gocov: gocov report print total coverage NaN% when totalReached and totalStatements are zero #84

wingyplus opened this issue Jun 28, 2019 · 0 comments · Fixed by #85 · May be fixed by manilion/gocov#1

Comments

@wingyplus
Copy link

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)
@wingyplus wingyplus changed the title gocov report print total coverage NaN% when totalReached and totalStatements are zero gocov: gocov report print total coverage NaN% when totalReached and totalStatements are zero Jun 28, 2019
wingyplus pushed a commit to wingyplus/gocov that referenced this issue Jun 28, 2019
@axw axw closed this as completed in #85 Jan 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant