You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologize if the terminology is incorrect. I wasn't getting full coverage on our fully-defined and exercised switch-expressions after upgrading to jacoco-8.11.0.
switch (e) {
case A -> {
int i = 4;
}
case B -> {
int i = 4;
}
}
is switch statement and not switch expression. As proof - try to add a new constant to enum and you'll see that the compiler will not complain that switch is not exhaustive.
I apologize if the terminology is incorrect. I wasn't getting full coverage on our fully-defined and exercised switch-expressions after upgrading to jacoco-8.11.0.
I extended the original example here: #1472
Expected behaviour
Full branch coverage
Actual behaviour
Thanks.
The text was updated successfully, but these errors were encountered: