Avoid conditions with one line #1098
Labels
discussion
Initial issue state - proposed but not yet accepted
house-keeping
Small enhancements that need to be done in order to keep the project organised
Summary
The current coverage engine think that the whole line is covered although the condition was not met, so maybe we have a wrong coverage percentage because some parts of the code are not tested.
For example
In this case, if you test this method with the value
a=2
full method will be covered, and is not. We should have test fora==1
too.Do you have any solution you want to propose?
Avoid one line for conditions or change the coverage engine.
Where in software does this update applies to?
The text was updated successfully, but these errors were encountered: