gobco icon indicating copy to clipboard operation
gobco copied to clipboard

how to get the branch coverage from the report file

Open BattleBird opened this issue 5 years ago • 0 comments

Dear junhwi,

Recently, I have used your tool to do many things. However, I have a question?

I can get the coverage file and the coverage file provide some detailed information. But how can I get the branch coverage(like 50%) from the coverage file? In the statement coverage, I can use the command "go tool cover -func=c.out" to get the statement coverage. Is there any similar way to get the branch coverage? Thanks in advance!

BattleBird avatar May 11 '20 06:05 BattleBird