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
Then there comes the ret equals filter and removes the mutator. The problem is that the ICONST_0; IRETURN is just one execution path, and there is another path: ICONST_1; IRETURN in the function.
@hcoles please point how to solve this issue correctly.
The text was updated successfully, but these errors were encountered:
This issue was found in checkstyle. We have a pretty high pitest coverage maintained by CI. Master pitest was passing when this incident was discovered.
Service.java:
TestService.java:
pom.xml:
Expected output (there is a missing test case for a positive number):
KILLED 0 SURVIVED 1 TIMED_OUT 0 NON_VIABLE 0
Actual output:
No mutations found.
What is going on: for the method
isPositive
the bytecode isIt ends with
ICONST_0; IRETURN
. The mutator changes it toThen there comes the
ret equals
filter and removes the mutator. The problem is that theICONST_0; IRETURN
is just one execution path, and there is another path:ICONST_1; IRETURN
in the function.@hcoles please point how to solve this issue correctly.
The text was updated successfully, but these errors were encountered: