RouletteWheelSelectionPolicyHandler.java

1
package net.bmahe.genetics4j.core.selection;
2
3
import java.util.Comparator;
4
import java.util.List;
5
import java.util.Objects;
6
import java.util.random.RandomGenerator;
7
8
import org.apache.commons.lang3.Validate;
9
10
import net.bmahe.genetics4j.core.Genotype;
11
import net.bmahe.genetics4j.core.Population;
12
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration;
13
import net.bmahe.genetics4j.core.spec.AbstractEAExecutionContext;
14
import net.bmahe.genetics4j.core.spec.selection.RouletteWheel;
15
import net.bmahe.genetics4j.core.spec.selection.SelectionPolicy;
16
17
public class RouletteWheelSelectionPolicyHandler<T extends Number & Comparable<T>>
18
		implements SelectionPolicyHandler<T>
19
{
20
21
	private final RandomGenerator randomGenerator;
22
23
	public RouletteWheelSelectionPolicyHandler(final RandomGenerator _randomGenerator) {
24
		Objects.requireNonNull(_randomGenerator);
25
26 1 1. <init> : Removed assignment to member variable randomGenerator → KILLED
		this.randomGenerator = _randomGenerator;
27
	}
28
29
	@Override
30
	public boolean canHandle(final SelectionPolicy selectionPolicy) {
31
		Objects.requireNonNull(selectionPolicy);
32 2 1. canHandle : replaced boolean return with false for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED
2. canHandle : replaced boolean return with true for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED
		return selectionPolicy instanceof RouletteWheel;
33
	}
34
35
	@Override
36
	public Selector<T> resolve(AbstractEAExecutionContext<T> eaExecutionContext,
37
			AbstractEAConfiguration<T> eaConfiguration, SelectionPolicyHandlerResolver<T> selectionPolicyHandlerResolver,
38
			SelectionPolicy selectionPolicy) {
39
		Objects.requireNonNull(selectionPolicy);
40
		Validate.isInstanceOf(RouletteWheel.class, selectionPolicy);
41
42 3 1. <init> : Removed assignment to member variable this$0 → KILLED
2. resolve : replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::resolve → KILLED
3. resolve : removed call to net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::<init> → KILLED
		return new Selector<T>() {
43
44
			@Override
45
			public Population<T> select(final AbstractEAConfiguration<T> eaConfiguration, final long generation,
46
					final int numIndividuals, final List<Genotype> population, final List<T> fitnessScore) {
47
				Objects.requireNonNull(eaConfiguration);
48
				Objects.requireNonNull(population);
49
				Objects.requireNonNull(fitnessScore);
50
				Validate.isTrue(numIndividuals > 0);
51
				Validate.isTrue(population.size() == fitnessScore.size());
52
53 1 1. select : removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED
				final Population<T> selectedIndividuals = new Population<>();
54
55 1 1. select : removed call to java/util/List::stream → KILLED
				final double minFitness = fitnessScore.stream()
56 5 1. select : replaced call to java/util/stream/Stream::map with receiver → SURVIVED
2. lambda$select$0 : removed call to java/lang/Number::doubleValue → SURVIVED
3. lambda$select$0 : replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$0 → SURVIVED
4. lambda$select$0 : removed call to java/lang/Double::valueOf → KILLED
5. select : removed call to java/util/stream/Stream::map → KILLED
						.map(Number::doubleValue)
57 2 1. select : removed call to java/util/Comparator::naturalOrder → KILLED
2. select : removed call to java/util/stream/Stream::min → KILLED
						.min(Comparator.naturalOrder())
58 2 1. select : removed call to java/lang/Double::doubleValue → SURVIVED
2. select : removed call to java/util/Optional::orElseThrow → KILLED
						.orElseThrow();
59 1 1. select : removed call to java/util/List::stream → KILLED
				final double maxFitness = fitnessScore.stream()
60 5 1. select : replaced call to java/util/stream/Stream::map with receiver → SURVIVED
2. lambda$select$1 : removed call to java/lang/Double::valueOf → KILLED
3. select : removed call to java/util/stream/Stream::map → KILLED
4. lambda$select$1 : replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$1 → KILLED
5. lambda$select$1 : removed call to java/lang/Number::doubleValue → KILLED
						.map(Number::doubleValue)
61 2 1. select : removed call to java/util/stream/Stream::max → KILLED
2. select : removed call to java/util/Comparator::naturalOrder → KILLED
						.max(Comparator.naturalOrder())
62 2 1. select : removed call to java/lang/Double::doubleValue → KILLED
2. select : removed call to java/util/Optional::orElseThrow → KILLED
						.orElseThrow();
63 1 1. select : Replaced double addition with subtraction → KILLED
				final double reversedBase = minFitness + maxFitness; // Used as a base when minimizing
64
65 1 1. select : Substituted 0.0 with 1.0 → SURVIVED
				double sumFitness = 0.0;
66 1 1. select : removed call to java/util/List::size → KILLED
				final double[] probabilities = new double[population.size()];
67
68 6 1. select : removed call to java/util/List::size → KILLED
2. select : removed conditional - replaced comparison check with false → KILLED
3. select : changed conditional boundary → KILLED
4. select : negated conditional → KILLED
5. select : removed conditional - replaced comparison check with true → KILLED
6. select : Substituted 0 with 1 → KILLED
				for (int i = 0; i < population.size(); i++) {
69 6 1. select : removed call to java/lang/MatchException::<init> → NO_COVERAGE
2. select : removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → KILLED
3. select : removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED
4. select : RemoveSwitch 0 (case value 1) → KILLED
5. select : RemoveSwitch 1 (case value 2) → KILLED
6. select : Changed switch default to be first case → KILLED
					final double score = switch (eaConfiguration.optimization()) {
70 1 1. select : removed call to java/util/List::get → KILLED
						case MAXIMIZE -> fitnessScore.get(i)
71 1 1. select : removed call to java/lang/Number::doubleValue → KILLED
								.doubleValue();
72 1 1. select : removed call to java/util/List::get → KILLED
						case MINIMIZE -> reversedBase - fitnessScore.get(i)
73 2 1. select : Replaced double subtraction with addition → KILLED
2. select : removed call to java/lang/Number::doubleValue → KILLED
								.doubleValue();
74
					};
75
76 1 1. select : Replaced double addition with subtraction → KILLED
					sumFitness += score;
77
					probabilities[i] = sumFitness;
78
				}
79
80 5 1. select : removed conditional - replaced comparison check with true → TIMED_OUT
2. select : removed conditional - replaced comparison check with false → KILLED
3. select : Substituted 0 with 1 → KILLED
4. select : changed conditional boundary → KILLED
5. select : negated conditional → KILLED
				for (int i = 0; i < numIndividuals; i++) {
81 2 1. select : Replaced double multiplication with division → KILLED
2. select : removed call to java/util/random/RandomGenerator::nextDouble → KILLED
					final double targetScore = randomGenerator.nextDouble() * sumFitness;
82
83 1 1. select : Substituted 0 with 1 → KILLED
					int index = 0;
84 4 1. select : negated conditional → KILLED
2. select : removed conditional - replaced comparison check with true → KILLED
3. select : removed conditional - replaced comparison check with false → KILLED
4. select : changed conditional boundary → KILLED
					while (probabilities[index] < targetScore) {
85 2 1. select : Removed increment 1 → TIMED_OUT
2. select : Changed increment from 1 to -1 → KILLED
						index++;
86
					}
87
88 3 1. select : removed call to java/util/List::get → KILLED
2. select : removed call to java/util/List::get → KILLED
3. select : removed call to net/bmahe/genetics4j/core/Population::add → KILLED
					selectedIndividuals.add(population.get(index), fitnessScore.get(index));
89
				}
90
91 1 1. select : replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::select → KILLED
				return selectedIndividuals;
92
			}
93
		};
94
	}
95
}

Mutations

26

1.1
Location : <init>
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Removed assignment to member variable randomGenerator → KILLED

32

1.1
Location : canHandle
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:canHandle()]
replaced boolean return with false for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED

2.2
Location : canHandle
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:canHandle()]
replaced boolean return with true for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::canHandle → KILLED

42

1.1
Location : <init>
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Removed assignment to member variable this$0 → KILLED

2.2
Location : resolve
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler::resolve → KILLED

3.3
Location : resolve
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::<init> → KILLED

53

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to net/bmahe/genetics4j/core/Population::<init> → KILLED

55

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::stream → KILLED

56

1.1
Location : lambda$select$0
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/lang/Double::valueOf → KILLED

2.2
Location : select
Killed by : none
replaced call to java/util/stream/Stream::map with receiver → SURVIVED
Covering tests

3.3
Location : lambda$select$0
Killed by : none
removed call to java/lang/Number::doubleValue → SURVIVED Covering tests

4.4
Location : lambda$select$0
Killed by : none
replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$0 → SURVIVED Covering tests

5.5
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/stream/Stream::map → KILLED

57

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/Comparator::naturalOrder → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/stream/Stream::min → KILLED

58

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/Optional::orElseThrow → KILLED

2.2
Location : select
Killed by : none
removed call to java/lang/Double::doubleValue → SURVIVED
Covering tests

59

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::stream → KILLED

60

1.1
Location : lambda$select$1
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/lang/Double::valueOf → KILLED

2.2
Location : select
Killed by : none
replaced call to java/util/stream/Stream::map with receiver → SURVIVED
Covering tests

3.3
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/stream/Stream::map → KILLED

4.4
Location : lambda$select$1
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
replaced Double return value with 0 for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::lambda$select$1 → KILLED

5.5
Location : lambda$select$1
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
removed call to java/lang/Number::doubleValue → KILLED

61

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/stream/Stream::max → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/Comparator::naturalOrder → KILLED

62

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
removed call to java/lang/Double::doubleValue → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/Optional::orElseThrow → KILLED

63

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
Replaced double addition with subtraction → KILLED

65

1.1
Location : select
Killed by : none
Substituted 0.0 with 1.0 → SURVIVED
Covering tests

66

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::size → KILLED

68

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::size → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed conditional - replaced comparison check with false → KILLED

3.3
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
changed conditional boundary → KILLED

4.4
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
negated conditional → KILLED

5.5
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed conditional - replaced comparison check with true → KILLED

6.6
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
Substituted 0 with 1 → KILLED

69

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to net/bmahe/genetics4j/core/spec/Optimization::ordinal → KILLED

2.2
Location : select
Killed by : none
removed call to java/lang/MatchException::<init> → NO_COVERAGE

3.3
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::optimization → KILLED

4.4
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
RemoveSwitch 0 (case value 1) → KILLED

5.5
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
RemoveSwitch 1 (case value 2) → KILLED

6.6
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Changed switch default to be first case → KILLED

70

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::get → KILLED

71

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/lang/Number::doubleValue → KILLED

72

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
removed call to java/util/List::get → KILLED

73

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
Replaced double subtraction with addition → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
removed call to java/lang/Number::doubleValue → KILLED

76

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Replaced double addition with subtraction → KILLED

80

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed conditional - replaced comparison check with false → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Substituted 0 with 1 → KILLED

3.3
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
changed conditional boundary → KILLED

4.4
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
negated conditional → KILLED

5.5
Location : select
Killed by : none
removed conditional - replaced comparison check with true → TIMED_OUT

81

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Replaced double multiplication with division → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/random/RandomGenerator::nextDouble → KILLED

83

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMinimizing()]
Substituted 0 with 1 → KILLED

84

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
negated conditional → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed conditional - replaced comparison check with true → KILLED

3.3
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed conditional - replaced comparison check with false → KILLED

4.4
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
changed conditional boundary → KILLED

85

1.1
Location : select
Killed by : none
Removed increment 1 → TIMED_OUT

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
Changed increment from 1 to -1 → KILLED

88

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::get → KILLED

2.2
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to java/util/List::get → KILLED

3.3
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
removed call to net/bmahe/genetics4j/core/Population::add → KILLED

91

1.1
Location : select
Killed by : net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.selection.RouletteWheelSelectionPolicyHandlerTest]/[method:selectMaximizing()]
replaced return value with null for net/bmahe/genetics4j/core/selection/RouletteWheelSelectionPolicyHandler$1::select → KILLED

Active mutators

Tests examined


Report generated by PIT 1.20.3