Closed byte-jiao closed 11 months ago
How does this tool calculate the branch coverage of the entire project?
Currently, gobco can only calculate the branch coverage of a single Go package, but not of a complete project. That would be a nice addition, though.
panic: runtime error: index out of range [0] with length 0
That's because the root directory of your project doesn't contain any Go package. This is a situation that didn't occur in my testing scenarios. I'll fix it.
panic: gobco: checking multiple packages doesn't work yet
Gobco currently doesn't support the ...
argument. I had a look at how the Go tools handle this path specification, but all the related code was quite large and in an internal package, so I decided not to implement it for now.
One of the panics is fixed in 1.3.0, the other one is a duplicate of https://github.com/rillig/gobco/issues/12.
How does this tool calculate the branch coverage of the entire project? When I execute it in the root directory of the project, I encounter the following error:
If I add some parameters, for example:
I will encounter the following error: