Open jakubch1 opened 3 years ago
Hi, I've run coverlet on such method
public void OtherMethod() { int i = 0; if ( i < 10 || i < 2 ) { Console.WriteLine("lallaa"); } }
and coverage is:
<line number="21" hits="1" branch="True" condition-coverage="75% (3/4)"> <conditions> <condition number="6" type="jump" coverage="50%" /> <condition number="17" type="jump" coverage="100%" /> </conditions> </line>
probably it should be:
<line number="21" hits="1" branch="True" condition-coverage="25% (1/4)"> <conditions> <condition number="6" type="jump" coverage="50%" /> <condition number="17" type="jump" coverage="0%" /> </conditions> </line>
as second condition is not even checked. This is more a question if using mono.cecil are you able to calculate it correctly?
Thanks for reporting this
Please verify whether the problem still exists using the latest coverlet 6.0.2 release.
Hi, I've run coverlet on such method
and coverage is:
probably it should be:
as second condition is not even checked. This is more a question if using mono.cecil are you able to calculate it correctly?