Closed cgewecke closed 7 years ago
I guess this is a philosophical difference more than anything. It is interesting that the istanbul instrumentation shows it being run 10 times though - the natural fix for this would lead to it being marked as run 11 times.
I like the idea of taking Istanbul as the source of 'truth' for what our instrumentation should be doing, but I suspect getting that line being marked as run ten times will prove tricky.
Right. I'm going to close. No one writes a loop like this anyway.
Istanbul reports a JS statement like this as follows
The solcover report:
The instrumentation looks like this:
If the statement in the body of the
ForStatement
is on its own line, the reporting is correct. Do these same line statements needs their ownCoverage(etc)
event?