Closed
Description
Hey,
in Java when the coverage is calculated it also checks if only one and
or or
statement in an if is called.
Currently as far as I can see this is not the case for solifidy coverage.
function check(string typeString, uint8 currentType)
private
pure
returns (bool)
{
return
(mapType(typeString, 2) == currentType && mapType(typeString, 4) == currentType ) ||
(mapType(typeString, 1) == currentType && mapType(typeString, 3) == currentType);
}
This is satisfied if it returns true and false once, even it has not been triggered with all possible combinations.
Maybe this is also just not displayed in the html report.