You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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:
The text was updated successfully, but these errors were encountered: