1 | package org.demo.intestption; | |
2 | ||
3 | class Example1 { | |
4 | ||
5 | String ended(boolean success) { | |
6 |
1
1. ended : removed call to org/demo/intestption/Example1::incrementCount → SURVIVED |
incrementCount(); |
7 |
5
1. ended : replaced return value with "" for org/demo/intestption/Example1::ended → KILLED 2. ended : negated conditional → KILLED 3. ended : removed conditional - replaced equality check with false → KILLED 4. ended : removed conditional - replaced equality check with true → KILLED 5. ended : mutated return of Object value for org/demo/intestption/Example1::ended to ( if (x != null) null else throw new RuntimeException ) → KILLED |
return (success ? "OK" : "KO"); |
8 | } | |
9 | ||
10 | private void incrementCount() { | |
11 | // This method will achieve very important things in its (short) life! | |
12 | } | |
13 | ||
14 | } | |
Mutations | ||
6 |
1.1 |
|
7 |
1.1 2.2 3.3 4.4 5.5 |