NodeReplacementMutator.java

1
package net.bmahe.genetics4j.gp.mutation;
2
3
import java.util.List;
4
import java.util.Set;
5
import java.util.random.RandomGenerator;
6
import java.util.stream.Collectors;
7
import java.util.stream.Stream;
8
9
import org.apache.commons.lang3.Validate;
10
11
import net.bmahe.genetics4j.core.Genotype;
12
import net.bmahe.genetics4j.core.chromosomes.Chromosome;
13
import net.bmahe.genetics4j.core.chromosomes.TreeChromosome;
14
import net.bmahe.genetics4j.core.chromosomes.TreeNode;
15
import net.bmahe.genetics4j.core.mutation.Mutator;
16
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration;
17
import net.bmahe.genetics4j.core.spec.chromosome.ChromosomeSpec;
18
import net.bmahe.genetics4j.gp.Operation;
19
import net.bmahe.genetics4j.gp.OperationFactory;
20
import net.bmahe.genetics4j.gp.program.Program;
21
import net.bmahe.genetics4j.gp.program.ProgramHelper;
22
import net.bmahe.genetics4j.gp.spec.chromosome.ProgramTreeChromosomeSpec;
23
24
public class NodeReplacementMutator implements Mutator {
25
26
	private final ProgramHelper programHelper;
27
	private final RandomGenerator randomGenerator;
28
	private final AbstractEAConfiguration eaConfiguration;
29
	private final double populationMutationProbability;
30
31
	public NodeReplacementMutator(final ProgramHelper _programHelper, final RandomGenerator _randomGenerator,
32
			final AbstractEAConfiguration _eaConfiguration, final double populationMutationProbability) {
33
		Validate.notNull(_programHelper);
34
		Validate.notNull(_randomGenerator);
35
		Validate.notNull(_eaConfiguration);
36
		Validate.inclusiveBetween(0.0, 1.0, populationMutationProbability);
37
38 1 1. <init> : Removed assignment to member variable programHelper → SURVIVED
		this.programHelper = _programHelper;
39 1 1. <init> : Removed assignment to member variable randomGenerator → KILLED
		this.randomGenerator = _randomGenerator;
40 1 1. <init> : Removed assignment to member variable eaConfiguration → SURVIVED
		this.eaConfiguration = _eaConfiguration;
41 1 1. <init> : Removed assignment to member variable populationMutationProbability → SURVIVED
		this.populationMutationProbability = populationMutationProbability;
42
	}
43
44
	protected TreeNode<Operation<?>> duplicateNode(final Program program, final TreeNode<Operation<?>> root,
45
			final int cutPoint, final int nodeIndex) {
46
		Validate.notNull(root);
47
		Validate.isTrue(cutPoint >= 0);
48
49 1 1. duplicateNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → KILLED
		final Operation<?> rootData = root.getData();
50 1 1. duplicateNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getChildren → KILLED
		final List<TreeNode<Operation<?>>> children = root.getChildren();
51
52 1 1. duplicateNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::<init> → KILLED
		final TreeNode<Operation<?>> duplicateRoot = new TreeNode<Operation<?>>(rootData);
53
54 2 1. duplicateNode : Substituted 1 with 0 → SURVIVED
2. duplicateNode : Replaced integer addition with subtraction → SURVIVED
		int currentIndex = nodeIndex + 1;
55 6 1. duplicateNode : negated conditional → KILLED
2. duplicateNode : removed conditional - replaced comparison check with true → KILLED
3. duplicateNode : removed conditional - replaced comparison check with false → KILLED
4. duplicateNode : removed call to java/util/List::size → KILLED
5. duplicateNode : Substituted 0 with 1 → KILLED
6. duplicateNode : changed conditional boundary → KILLED
		for (int i = 0; i < children.size(); i++) {
56 1 1. duplicateNode : removed call to java/util/List::get → KILLED
			final TreeNode<Operation<?>> treeNode = children.get(i);
57 1 1. duplicateNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getSize → SURVIVED
			final int childSize = treeNode.getSize();
58
59 2 1. duplicateNode : replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode with argument → SURVIVED
2. duplicateNode : removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED
			final TreeNode<Operation<?>> childCopy = duplicateAndReplaceNode(program, treeNode, cutPoint, currentIndex);
60 1 1. duplicateNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::addChild → KILLED
			duplicateRoot.addChild(childCopy);
61 1 1. duplicateNode : Replaced integer addition with subtraction → SURVIVED
			currentIndex += childSize;
62
		}
63
64 1 1. duplicateNode : replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode → KILLED
		return duplicateRoot;
65
	}
66
67
	protected List<OperationFactory> findReplacementCandidates(final Program program,
68
			final TreeNode<Operation<?>> root) {
69
		Validate.notNull(root);
70
71 1 1. findReplacementCandidates : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → KILLED
		final Operation<?> rootData = root.getData();
72
73 1 1. findReplacementCandidates : removed call to net/bmahe/genetics4j/gp/Operation::returnedType → KILLED
		final Class returnedType = rootData.returnedType();
74 1 1. findReplacementCandidates : removed call to net/bmahe/genetics4j/gp/Operation::acceptedTypes → KILLED
		final List<Class> acceptedTypes = rootData.acceptedTypes();
75
76 1 1. findReplacementCandidates : removed call to net/bmahe/genetics4j/gp/program/Program::functions → KILLED
		final Set<OperationFactory> functions = program.functions();
77 1 1. findReplacementCandidates : removed call to net/bmahe/genetics4j/gp/program/Program::terminal → KILLED
		final Set<OperationFactory> terminals = program.terminal();
78
79 4 1. findReplacementCandidates : replaced call to java/util/stream/Stream::concat with argument → SURVIVED
2. findReplacementCandidates : removed call to java/util/stream/Stream::concat → KILLED
3. findReplacementCandidates : removed call to java/util/Set::stream → KILLED
4. findReplacementCandidates : removed call to java/util/Set::stream → KILLED
		final List<OperationFactory> candidates = Stream.concat(functions.stream(), terminals.stream())
80 2 1. findReplacementCandidates : replaced call to java/util/stream/Stream::filter with receiver → SURVIVED
2. findReplacementCandidates : removed call to java/util/stream/Stream::filter → KILLED
				.filter(opFactory -> {
81 2 1. lambda$findReplacementCandidates$0 : removed call to net/bmahe/genetics4j/gp/OperationFactory::returnedType → KILLED
2. lambda$findReplacementCandidates$0 : removed call to java/lang/Class::isAssignableFrom → KILLED
					final boolean b = returnedType.isAssignableFrom(opFactory.returnedType());
82 2 1. lambda$findReplacementCandidates$0 : replaced boolean return with true for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$0 → SURVIVED
2. lambda$findReplacementCandidates$0 : replaced boolean return with false for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$0 → KILLED
					return b;
83
				})
84 2 1. findReplacementCandidates : replaced call to java/util/stream/Stream::filter with receiver → KILLED
2. findReplacementCandidates : removed call to java/util/stream/Stream::filter → KILLED
				.filter(opFactory -> {
85
86 5 1. lambda$findReplacementCandidates$1 : removed call to net/bmahe/genetics4j/gp/OperationFactory::acceptedTypes → KILLED
2. lambda$findReplacementCandidates$1 : removed conditional - replaced equality check with false → KILLED
3. lambda$findReplacementCandidates$1 : negated conditional → KILLED
4. lambda$findReplacementCandidates$1 : removed conditional - replaced equality check with true → KILLED
5. lambda$findReplacementCandidates$1 : removed call to java/util/List::size → KILLED
					if (opFactory.acceptedTypes().length != acceptedTypes.size()) {
87 2 1. lambda$findReplacementCandidates$1 : Substituted 0 with 1 → KILLED
2. lambda$findReplacementCandidates$1 : replaced boolean return with true for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$1 → KILLED
						return false;
88
					}
89
90 6 1. lambda$findReplacementCandidates$1 : removed conditional - replaced comparison check with false → KILLED
2. lambda$findReplacementCandidates$1 : changed conditional boundary → KILLED
3. lambda$findReplacementCandidates$1 : removed call to java/util/List::size → KILLED
4. lambda$findReplacementCandidates$1 : Substituted 0 with 1 → KILLED
5. lambda$findReplacementCandidates$1 : removed conditional - replaced comparison check with true → KILLED
6. lambda$findReplacementCandidates$1 : negated conditional → KILLED
					for (int i = 0; i < acceptedTypes.size(); i++) {
91
92 6 1. lambda$findReplacementCandidates$1 : removed call to java/lang/Class::isAssignableFrom → SURVIVED
2. lambda$findReplacementCandidates$1 : removed conditional - replaced equality check with true → SURVIVED
3. lambda$findReplacementCandidates$1 : removed call to java/util/List::get → KILLED
4. lambda$findReplacementCandidates$1 : removed call to net/bmahe/genetics4j/gp/OperationFactory::acceptedTypes → KILLED
5. lambda$findReplacementCandidates$1 : negated conditional → KILLED
6. lambda$findReplacementCandidates$1 : removed conditional - replaced equality check with false → KILLED
						if (acceptedTypes.get(i).isAssignableFrom(opFactory.acceptedTypes()[i]) == false) {
93 2 1. lambda$findReplacementCandidates$1 : Substituted 0 with 1 → KILLED
2. lambda$findReplacementCandidates$1 : replaced boolean return with true for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$1 → KILLED
							return false;
94
						}
95
					}
96
97 2 1. lambda$findReplacementCandidates$1 : Substituted 1 with 0 → KILLED
2. lambda$findReplacementCandidates$1 : replaced boolean return with false for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$1 → KILLED
					return true;
98
				})
99 2 1. findReplacementCandidates : removed call to java/util/stream/Collectors::toList → KILLED
2. findReplacementCandidates : removed call to java/util/stream/Stream::collect → KILLED
				.collect(Collectors.toList());
100
101 1 1. findReplacementCandidates : replaced return value with Collections.emptyList for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::findReplacementCandidates → KILLED
		return candidates;
102
	}
103
104
	protected TreeNode<Operation<?>> duplicateAndReplaceNode(final Program program, final TreeNode<Operation<?>> root,
105
			final int cutPoint, final int nodeIndex) {
106
		Validate.notNull(root);
107
		Validate.isTrue(cutPoint >= 0);
108
109 1 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → SURVIVED
		final Operation<?> rootData = root.getData();
110
111 3 1. duplicateAndReplaceNode : removed conditional - replaced equality check with true → SURVIVED
2. duplicateAndReplaceNode : removed conditional - replaced equality check with false → SURVIVED
3. duplicateAndReplaceNode : negated conditional → KILLED
		if (nodeIndex == cutPoint) {
112
113 1 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::findReplacementCandidates → KILLED
			final List<OperationFactory> candidates = findReplacementCandidates(program, root);
114
115 5 1. duplicateAndReplaceNode : removed conditional - replaced comparison check with true → SURVIVED
2. duplicateAndReplaceNode : negated conditional → SURVIVED
3. duplicateAndReplaceNode : changed conditional boundary → SURVIVED
4. duplicateAndReplaceNode : removed call to java/util/List::size → SURVIVED
5. duplicateAndReplaceNode : removed conditional - replaced comparison check with false → SURVIVED
			if (candidates.size() > 0) {
116
117 4 1. duplicateAndReplaceNode : removed call to java/util/random/RandomGenerator::nextInt → SURVIVED
2. duplicateAndReplaceNode : removed call to java/util/List::size → KILLED
3. duplicateAndReplaceNode : removed call to java/util/List::get → KILLED
4. duplicateAndReplaceNode : replaced call to java/util/random/RandomGenerator::nextInt with argument → KILLED
				final OperationFactory chosenOperationFactory = candidates.get(randomGenerator.nextInt(candidates.size()));
118 2 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/gp/program/Program::inputSpec → SURVIVED
2. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/gp/OperationFactory::build → KILLED
				final Operation operation = chosenOperationFactory.build(program.inputSpec());
119
120 1 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::<init> → KILLED
				final TreeNode<Operation<?>> replacedNode = new TreeNode<Operation<?>>(operation);
121 2 1. duplicateAndReplaceNode : Substituted 1 with 0 → SURVIVED
2. duplicateAndReplaceNode : Replaced integer addition with subtraction → SURVIVED
				int currentIndex = nodeIndex + 1;
122 1 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getChildren → KILLED
				for (final TreeNode<Operation<?>> child : root.getChildren()) {
123 1 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getSize → SURVIVED
					final int childSize = child.getSize();
124
125 2 1. duplicateAndReplaceNode : replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode with argument → SURVIVED
2. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED
					final TreeNode<Operation<?>> childCopy = duplicateAndReplaceNode(program, child, cutPoint, currentIndex);
126 1 1. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::addChild → SURVIVED
					replacedNode.addChild(childCopy);
127 1 1. duplicateAndReplaceNode : Replaced integer addition with subtraction → SURVIVED
					currentIndex += childSize;
128
129
				}
130
131 1 1. duplicateAndReplaceNode : replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED
				return replacedNode;
132
			} else {
133 3 1. duplicateAndReplaceNode : replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode with argument → NO_COVERAGE
2. duplicateAndReplaceNode : replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → NO_COVERAGE
3. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode → NO_COVERAGE
				return duplicateNode(program, root, cutPoint, nodeIndex);
134
			}
135
		} else {
136 3 1. duplicateAndReplaceNode : replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode with argument → SURVIVED
2. duplicateAndReplaceNode : replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED
3. duplicateAndReplaceNode : removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode → KILLED
			return duplicateNode(program, root, cutPoint, nodeIndex);
137
		}
138
	}
139
140
	@Override
141
	public Genotype mutate(final Genotype original) {
142
		Validate.notNull(original);
143
144 10 1. mutate : removed conditional - replaced equality check with true → SURVIVED
2. mutate : removed call to java/util/random/RandomGenerator::nextDouble → SURVIVED
3. mutate : changed conditional boundary → SURVIVED
4. mutate : removed conditional - replaced comparison check with false → SURVIVED
5. mutate : Substituted 1 with 0 → NO_COVERAGE
6. mutate : removed conditional - replaced equality check with false → KILLED
7. mutate : negated conditional → KILLED
8. mutate : removed conditional - replaced comparison check with true → KILLED
9. mutate : Substituted 0 with 1 → KILLED
10. mutate : negated conditional → KILLED
		if (randomGenerator.nextDouble() < populationMutationProbability == false) {
145 1 1. mutate : replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::mutate → KILLED
			return original;
146
		}
147
148 1 1. mutate : removed call to net/bmahe/genetics4j/core/Genotype::getSize → NO_COVERAGE
		final Chromosome[] newChromosomes = new Chromosome[original.getSize()];
149 1 1. mutate : removed call to net/bmahe/genetics4j/core/Genotype::getChromosomes → NO_COVERAGE
		final Chromosome[] chromosomes = original.getChromosomes();
150 5 1. mutate : removed conditional - replaced comparison check with true → NO_COVERAGE
2. mutate : negated conditional → NO_COVERAGE
3. mutate : changed conditional boundary → NO_COVERAGE
4. mutate : Substituted 0 with 1 → NO_COVERAGE
5. mutate : removed conditional - replaced comparison check with false → NO_COVERAGE
		for (int chromosomeIndex = 0; chromosomeIndex < chromosomes.length; chromosomeIndex++) {
151 1 1. mutate : removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::getChromosomeSpec → NO_COVERAGE
			final ChromosomeSpec chromosomeSpec = eaConfiguration.getChromosomeSpec(chromosomeIndex);
152
			final Chromosome chromosome = chromosomes[chromosomeIndex];
153
154 3 1. mutate : negated conditional → NO_COVERAGE
2. mutate : removed conditional - replaced equality check with false → NO_COVERAGE
3. mutate : removed conditional - replaced equality check with true → NO_COVERAGE
			if (chromosomeSpec instanceof ProgramTreeChromosomeSpec == false) {
155 2 1. mutate : removed call to java/lang/String::valueOf → NO_COVERAGE
2. mutate : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
				throw new IllegalArgumentException("This mutator does not support chromosome specs " + chromosomeSpec);
156
			}
157
158 3 1. mutate : negated conditional → NO_COVERAGE
2. mutate : removed conditional - replaced equality check with false → NO_COVERAGE
3. mutate : removed conditional - replaced equality check with true → NO_COVERAGE
			if (chromosome instanceof TreeChromosome<?> == false) {
159
				throw new IllegalArgumentException(
160 3 1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getClass → NO_COVERAGE
2. mutate : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
3. mutate : removed call to java/lang/Class::getSimpleName → NO_COVERAGE
						"This mutator does not support chromosome of type " + chromosome.getClass().getSimpleName());
161
			}
162
163
			final ProgramTreeChromosomeSpec programTreeChromosomeSpec = (ProgramTreeChromosomeSpec) chromosomeSpec;
164
165
			final TreeChromosome<Operation<?>> treeChromosome = (TreeChromosome<Operation<?>>) chromosome;
166 1 1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getSize → NO_COVERAGE
			final int chromosomeSize = treeChromosome.getSize();
167
168 5 1. mutate : removed conditional - replaced comparison check with true → NO_COVERAGE
2. mutate : negated conditional → NO_COVERAGE
3. mutate : changed conditional boundary → NO_COVERAGE
4. mutate : Substituted 2 with 3 → NO_COVERAGE
5. mutate : removed conditional - replaced comparison check with false → NO_COVERAGE
			if (chromosomeSize > 2) {
169 6 1. mutate : Replaced integer addition with subtraction → NO_COVERAGE
2. mutate : replaced call to java/util/random/RandomGenerator::nextInt with argument → NO_COVERAGE
3. mutate : removed call to java/util/random/RandomGenerator::nextInt → NO_COVERAGE
4. mutate : Replaced integer subtraction with addition → NO_COVERAGE
5. mutate : Substituted 1 with 0 → NO_COVERAGE
6. mutate : Substituted 1 with 0 → NO_COVERAGE
				final int cutPoint = randomGenerator.nextInt(chromosomeSize - 1) + 1;
170
171 1 1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getRoot → NO_COVERAGE
				final TreeNode<Operation<?>> root = treeChromosome.getRoot();
172 4 1. mutate : removed call to net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::program → NO_COVERAGE
2. mutate : replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode with argument → NO_COVERAGE
3. mutate : Substituted 0 with 1 → NO_COVERAGE
4. mutate : removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → NO_COVERAGE
				final TreeNode<Operation<?>> newRoot = duplicateAndReplaceNode(programTreeChromosomeSpec.program(),
173
						root,
174
						cutPoint,
175
						0);
176
177 1 1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::<init> → NO_COVERAGE
				final TreeChromosome<Operation<?>> newTreeChromosome = new TreeChromosome<>(newRoot);
178
				newChromosomes[chromosomeIndex] = newTreeChromosome;
179
			} else {
180
				newChromosomes[chromosomeIndex] = chromosome;
181
			}
182
183
		}
184
185 2 1. mutate : removed call to net/bmahe/genetics4j/core/Genotype::<init> → NO_COVERAGE
2. mutate : replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::mutate → NO_COVERAGE
		return new Genotype(newChromosomes);
186
	}
187
}

Mutations

38

1.1
Location : <init>
Killed by : none
Removed assignment to member variable programHelper → SURVIVED
Covering tests

39

1.1
Location : <init>
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
Removed assignment to member variable randomGenerator → KILLED

40

1.1
Location : <init>
Killed by : none
Removed assignment to member variable eaConfiguration → SURVIVED
Covering tests

41

1.1
Location : <init>
Killed by : none
Removed assignment to member variable populationMutationProbability → SURVIVED
Covering tests

49

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → KILLED

50

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getChildren → KILLED

52

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::<init> → KILLED

54

1.1
Location : duplicateNode
Killed by : none
Substituted 1 with 0 → SURVIVED
Covering tests

2.2
Location : duplicateNode
Killed by : none
Replaced integer addition with subtraction → SURVIVED Covering tests

55

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
negated conditional → KILLED

2.2
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed conditional - replaced comparison check with true → KILLED

3.3
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed conditional - replaced comparison check with false → KILLED

4.4
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to java/util/List::size → KILLED

5.5
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
Substituted 0 with 1 → KILLED

6.6
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
changed conditional boundary → KILLED

56

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to java/util/List::get → KILLED

57

1.1
Location : duplicateNode
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getSize → SURVIVED
Covering tests

59

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED

2.2
Location : duplicateNode
Killed by : none
replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode with argument → SURVIVED
Covering tests

60

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::addChild → KILLED

61

1.1
Location : duplicateNode
Killed by : none
Replaced integer addition with subtraction → SURVIVED
Covering tests

64

1.1
Location : duplicateNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode → KILLED

71

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → KILLED

73

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/Operation::returnedType → KILLED

74

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/Operation::acceptedTypes → KILLED

76

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/program/Program::functions → KILLED

77

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/program/Program::terminal → KILLED

79

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/stream/Stream::concat → KILLED

2.2
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/Set::stream → KILLED

3.3
Location : findReplacementCandidates
Killed by : none
replaced call to java/util/stream/Stream::concat with argument → SURVIVED
Covering tests

4.4
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/Set::stream → KILLED

80

1.1
Location : findReplacementCandidates
Killed by : none
replaced call to java/util/stream/Stream::filter with receiver → SURVIVED
Covering tests

2.2
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/stream/Stream::filter → KILLED

81

1.1
Location : lambda$findReplacementCandidates$0
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/OperationFactory::returnedType → KILLED

2.2
Location : lambda$findReplacementCandidates$0
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/lang/Class::isAssignableFrom → KILLED

82

1.1
Location : lambda$findReplacementCandidates$0
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
replaced boolean return with false for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$0 → KILLED

2.2
Location : lambda$findReplacementCandidates$0
Killed by : none
replaced boolean return with true for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$0 → SURVIVED
Covering tests

84

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
replaced call to java/util/stream/Stream::filter with receiver → KILLED

2.2
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/stream/Stream::filter → KILLED

86

1.1
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/OperationFactory::acceptedTypes → KILLED

2.2
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed conditional - replaced equality check with false → KILLED

3.3
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
negated conditional → KILLED

4.4
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed conditional - replaced equality check with true → KILLED

5.5
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/List::size → KILLED

87

1.1
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
Substituted 0 with 1 → KILLED

2.2
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
replaced boolean return with true for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$1 → KILLED

90

1.1
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed conditional - replaced comparison check with false → KILLED

2.2
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
changed conditional boundary → KILLED

3.3
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/List::size → KILLED

4.4
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
Substituted 0 with 1 → KILLED

5.5
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed conditional - replaced comparison check with true → KILLED

6.6
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
negated conditional → KILLED

92

1.1
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/List::get → KILLED

2.2
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to net/bmahe/genetics4j/gp/OperationFactory::acceptedTypes → KILLED

3.3
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
negated conditional → KILLED

4.4
Location : lambda$findReplacementCandidates$1
Killed by : none
removed call to java/lang/Class::isAssignableFrom → SURVIVED
Covering tests

5.5
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed conditional - replaced equality check with false → KILLED

6.6
Location : lambda$findReplacementCandidates$1
Killed by : none
removed conditional - replaced equality check with true → SURVIVED Covering tests

93

1.1
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
Substituted 0 with 1 → KILLED

2.2
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
replaced boolean return with true for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$1 → KILLED

97

1.1
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
Substituted 1 with 0 → KILLED

2.2
Location : lambda$findReplacementCandidates$1
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
replaced boolean return with false for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::lambda$findReplacementCandidates$1 → KILLED

99

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/stream/Collectors::toList → KILLED

2.2
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
removed call to java/util/stream/Stream::collect → KILLED

101

1.1
Location : findReplacementCandidates
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:findReplacementCandidates()]
replaced return value with Collections.emptyList for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::findReplacementCandidates → KILLED

109

1.1
Location : duplicateAndReplaceNode
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → SURVIVED
Covering tests

111

1.1
Location : duplicateAndReplaceNode
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

2.2
Location : duplicateAndReplaceNode
Killed by : none
removed conditional - replaced equality check with false → SURVIVED Covering tests

3.3
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
negated conditional → KILLED

113

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::findReplacementCandidates → KILLED

115

1.1
Location : duplicateAndReplaceNode
Killed by : none
removed conditional - replaced comparison check with true → SURVIVED
Covering tests

2.2
Location : duplicateAndReplaceNode
Killed by : none
negated conditional → SURVIVED Covering tests

3.3
Location : duplicateAndReplaceNode
Killed by : none
changed conditional boundary → SURVIVED Covering tests

4.4
Location : duplicateAndReplaceNode
Killed by : none
removed call to java/util/List::size → SURVIVED Covering tests

5.5
Location : duplicateAndReplaceNode
Killed by : none
removed conditional - replaced comparison check with false → SURVIVED Covering tests

117

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to java/util/List::size → KILLED

2.2
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to java/util/List::get → KILLED

3.3
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
replaced call to java/util/random/RandomGenerator::nextInt with argument → KILLED

4.4
Location : duplicateAndReplaceNode
Killed by : none
removed call to java/util/random/RandomGenerator::nextInt → SURVIVED
Covering tests

118

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/gp/OperationFactory::build → KILLED

2.2
Location : duplicateAndReplaceNode
Killed by : none
removed call to net/bmahe/genetics4j/gp/program/Program::inputSpec → SURVIVED
Covering tests

120

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::<init> → KILLED

121

1.1
Location : duplicateAndReplaceNode
Killed by : none
Substituted 1 with 0 → SURVIVED
Covering tests

2.2
Location : duplicateAndReplaceNode
Killed by : none
Replaced integer addition with subtraction → SURVIVED Covering tests

122

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getChildren → KILLED

123

1.1
Location : duplicateAndReplaceNode
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getSize → SURVIVED
Covering tests

125

1.1
Location : duplicateAndReplaceNode
Killed by : none
replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode with argument → SURVIVED
Covering tests

2.2
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED

126

1.1
Location : duplicateAndReplaceNode
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::addChild → SURVIVED
Covering tests

127

1.1
Location : duplicateAndReplaceNode
Killed by : none
Replaced integer addition with subtraction → SURVIVED
Covering tests

131

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED

133

1.1
Location : duplicateAndReplaceNode
Killed by : none
replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode with argument → NO_COVERAGE

2.2
Location : duplicateAndReplaceNode
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → NO_COVERAGE

3.3
Location : duplicateAndReplaceNode
Killed by : none
removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode → NO_COVERAGE

136

1.1
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → KILLED

2.2
Location : duplicateAndReplaceNode
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:simple()]
removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode → KILLED

3.3
Location : duplicateAndReplaceNode
Killed by : none
replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateNode with argument → SURVIVED
Covering tests

144

1.1
Location : mutate
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
removed conditional - replaced equality check with false → KILLED

2.2
Location : mutate
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

3.3
Location : mutate
Killed by : none
removed call to java/util/random/RandomGenerator::nextDouble → SURVIVED Covering tests

4.4
Location : mutate
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
negated conditional → KILLED

5.5
Location : mutate
Killed by : none
changed conditional boundary → SURVIVED Covering tests

6.6
Location : mutate
Killed by : none
removed conditional - replaced comparison check with false → SURVIVED Covering tests

7.7
Location : mutate
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
removed conditional - replaced comparison check with true → KILLED

8.8
Location : mutate
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
Substituted 0 with 1 → KILLED

9.9
Location : mutate
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
negated conditional → KILLED

10.10
Location : mutate
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

145

1.1
Location : mutate
Killed by : net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.NodeReplacementMutatorTest]/[method:noMutate()]
replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::mutate → KILLED

148

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::getSize → NO_COVERAGE

149

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::getChromosomes → NO_COVERAGE

150

1.1
Location : mutate
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

2.2
Location : mutate
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : mutate
Killed by : none
changed conditional boundary → NO_COVERAGE

4.4
Location : mutate
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

5.5
Location : mutate
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

151

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::getChromosomeSpec → NO_COVERAGE

154

1.1
Location : mutate
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : mutate
Killed by : none
removed conditional - replaced equality check with false → NO_COVERAGE

3.3
Location : mutate
Killed by : none
removed conditional - replaced equality check with true → NO_COVERAGE

155

1.1
Location : mutate
Killed by : none
removed call to java/lang/String::valueOf → NO_COVERAGE

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

158

1.1
Location : mutate
Killed by : none
negated conditional → NO_COVERAGE

2.2
Location : mutate
Killed by : none
removed conditional - replaced equality check with false → NO_COVERAGE

3.3
Location : mutate
Killed by : none
removed conditional - replaced equality check with true → NO_COVERAGE

160

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getClass → NO_COVERAGE

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

3.3
Location : mutate
Killed by : none
removed call to java/lang/Class::getSimpleName → NO_COVERAGE

166

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getSize → NO_COVERAGE

168

1.1
Location : mutate
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

2.2
Location : mutate
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : mutate
Killed by : none
changed conditional boundary → NO_COVERAGE

4.4
Location : mutate
Killed by : none
Substituted 2 with 3 → NO_COVERAGE

5.5
Location : mutate
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

169

1.1
Location : mutate
Killed by : none
Replaced integer addition with subtraction → NO_COVERAGE

2.2
Location : mutate
Killed by : none
replaced call to java/util/random/RandomGenerator::nextInt with argument → NO_COVERAGE

3.3
Location : mutate
Killed by : none
removed call to java/util/random/RandomGenerator::nextInt → NO_COVERAGE

4.4
Location : mutate
Killed by : none
Replaced integer subtraction with addition → NO_COVERAGE

5.5
Location : mutate
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

6.6
Location : mutate
Killed by : none
Substituted 1 with 0 → NO_COVERAGE

171

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getRoot → NO_COVERAGE

172

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::program → NO_COVERAGE

2.2
Location : mutate
Killed by : none
replaced call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode with argument → NO_COVERAGE

3.3
Location : mutate
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

4.4
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::duplicateAndReplaceNode → NO_COVERAGE

177

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::<init> → NO_COVERAGE

185

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/core/Genotype::<init> → NO_COVERAGE

2.2
Location : mutate
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gp/mutation/NodeReplacementMutator::mutate → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.19.6