For code like:
if (i<0 || i>255) {
} else {
}
the condition is reported as having 4 branches. Technically, this is
correct but two branches collapse as the condition has only 3 ranges of
possible values:
i<0 T
i>255 T
0<=i<=255 T .. ie. i<0 F and i>255 F
Could someone enhance the tool to only report the 3 branches when numeric
ranges exist ?
not critical just a thought..... of course then this expands as you write
even more complex range checks on numbers....
--
You received this message because you are subscribed to the Google Groups
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.