Closed visu-suganya closed 11 months ago
@rillig Please check
In parallel, I implemented the feature myself, see https://github.com/rillig/gobco/tree/branch-coverage. I originally only planned to do a thorough review of your changes, but for that, I had to move the tests around like you did, to see the actual changes to the file content, such as changed comments. While doing that, I noticed that it would be beneficial to not duplicate the tests, and when I continued on that path, I suddenly had the feature working.
@rillig Im happy that I tried to implement this even though Im not expert in go. Thanks for the new implementation and it is very helpful for my need.
As discussed in issue, fix for c1 coverage has been added