1
|
|
package net.bmahe.genetics4j.gp.mutation; |
2
|
|
|
3
|
|
import java.util.List; |
4
|
|
import java.util.random.RandomGenerator; |
5
|
|
|
6
|
|
import org.apache.commons.lang3.Validate; |
7
|
|
import org.apache.logging.log4j.LogManager; |
8
|
|
import org.apache.logging.log4j.Logger; |
9
|
|
|
10
|
|
import net.bmahe.genetics4j.core.Genotype; |
11
|
|
import net.bmahe.genetics4j.core.chromosomes.Chromosome; |
12
|
|
import net.bmahe.genetics4j.core.chromosomes.TreeChromosome; |
13
|
|
import net.bmahe.genetics4j.core.chromosomes.TreeNode; |
14
|
|
import net.bmahe.genetics4j.core.mutation.Mutator; |
15
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration; |
16
|
|
import net.bmahe.genetics4j.core.spec.chromosome.ChromosomeSpec; |
17
|
|
import net.bmahe.genetics4j.gp.Operation; |
18
|
|
import net.bmahe.genetics4j.gp.program.Program; |
19
|
|
import net.bmahe.genetics4j.gp.program.ProgramGenerator; |
20
|
|
import net.bmahe.genetics4j.gp.spec.chromosome.ProgramTreeChromosomeSpec; |
21
|
|
|
22
|
|
public class ProgramRandomMutateMutator implements Mutator { |
23
|
|
final static public Logger logger = LogManager.getLogger(ProgramRandomMutateMutator.class); |
24
|
|
|
25
|
|
private final ProgramGenerator programGenerator; |
26
|
|
private final RandomGenerator randomGenerator; |
27
|
|
private final AbstractEAConfiguration eaConfiguration; |
28
|
|
private final double populationMutationProbability; |
29
|
|
|
30
|
|
public ProgramRandomMutateMutator(final ProgramGenerator _programGenerator, final RandomGenerator _randomGenerator, |
31
|
|
final AbstractEAConfiguration _eaConfiguration, final double _populationMutationProbability) { |
32
|
|
Validate.notNull(_programGenerator); |
33
|
|
Validate.notNull(_randomGenerator); |
34
|
|
Validate.notNull(_eaConfiguration); |
35
|
|
Validate.inclusiveBetween(0.0, 1.0, _populationMutationProbability); |
36
|
|
|
37
|
1
1. <init> : Removed assignment to member variable programGenerator → KILLED
|
this.programGenerator = _programGenerator; |
38
|
1
1. <init> : Removed assignment to member variable randomGenerator → KILLED
|
this.randomGenerator = _randomGenerator; |
39
|
1
1. <init> : Removed assignment to member variable eaConfiguration → SURVIVED
|
this.eaConfiguration = _eaConfiguration; |
40
|
1
1. <init> : Removed assignment to member variable populationMutationProbability → SURVIVED
|
this.populationMutationProbability = _populationMutationProbability; |
41
|
|
} |
42
|
|
|
43
|
|
protected TreeNode<Operation<?>> duplicateAndMutate(final Program program, final TreeNode<Operation<?>> root, |
44
|
|
final int cutPoint, final int nodeIndex, final int currentDepth) { |
45
|
|
Validate.notNull(program); |
46
|
|
Validate.notNull(root); |
47
|
|
Validate.isTrue(cutPoint >= 0); |
48
|
|
|
49
|
1
1. duplicateAndMutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → KILLED
|
final Operation<?> rootData = root.getData(); |
50
|
|
|
51
|
3
1. duplicateAndMutate : negated conditional → KILLED
2. duplicateAndMutate : removed conditional - replaced equality check with false → KILLED
3. duplicateAndMutate : removed conditional - replaced equality check with true → KILLED
|
if (nodeIndex == cutPoint) { |
52
|
5
1. duplicateAndMutate : Replaced integer subtraction with addition → SURVIVED
2. duplicateAndMutate : removed call to net/bmahe/genetics4j/gp/program/Program::maxDepth → SURVIVED
3. duplicateAndMutate : replaced call to java/lang/Math::max with argument → SURVIVED
4. duplicateAndMutate : Substituted 1 with 0 → SURVIVED
5. duplicateAndMutate : removed call to java/lang/Math::max → KILLED
|
final int depth = Math.max(1, program.maxDepth() - currentDepth); |
53
|
11
1. duplicateAndMutate : changed conditional boundary → SURVIVED
2. duplicateAndMutate : removed conditional - replaced comparison check with false → SURVIVED
3. duplicateAndMutate : Replaced integer subtraction with addition → SURVIVED
4. duplicateAndMutate : Substituted 1 with 0 → SURVIVED
5. duplicateAndMutate : Substituted 1 with 0 → SURVIVED
6. duplicateAndMutate : replaced call to java/util/random/RandomGenerator::nextInt with argument → SURVIVED
7. duplicateAndMutate : Substituted 1 with 0 → SURVIVED
8. duplicateAndMutate : negated conditional → SURVIVED
9. duplicateAndMutate : removed conditional - replaced comparison check with true → SURVIVED
10. duplicateAndMutate : removed call to java/util/random/RandomGenerator::nextInt → SURVIVED
11. duplicateAndMutate : Replaced integer addition with subtraction → KILLED
|
final int maxSubtreeDepth = depth > 1 ? randomGenerator.nextInt(depth - 1) + 1 : depth; |
54
|
3
1. duplicateAndMutate : removed call to net/bmahe/genetics4j/gp/program/ProgramGenerator::generate → KILLED
2. duplicateAndMutate : replaced return value with null for net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → KILLED
3. duplicateAndMutate : removed call to net/bmahe/genetics4j/gp/Operation::returnedType → KILLED
|
return programGenerator.generate(program, maxSubtreeDepth, rootData.returnedType()); |
55
|
|
} |
56
|
|
|
57
|
1
1. duplicateAndMutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getChildren → KILLED
|
final List<TreeNode<Operation<?>>> children = root.getChildren(); |
58
|
|
|
59
|
1
1. duplicateAndMutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::<init> → KILLED
|
final TreeNode<Operation<?>> duplicateRoot = new TreeNode<Operation<?>>(rootData); |
60
|
|
|
61
|
2
1. duplicateAndMutate : Replaced integer addition with subtraction → KILLED
2. duplicateAndMutate : Substituted 1 with 0 → KILLED
|
int currentIndex = nodeIndex + 1; |
62
|
6
1. duplicateAndMutate : changed conditional boundary → KILLED
2. duplicateAndMutate : removed conditional - replaced comparison check with false → KILLED
3. duplicateAndMutate : removed call to java/util/List::size → KILLED
4. duplicateAndMutate : removed conditional - replaced comparison check with true → KILLED
5. duplicateAndMutate : negated conditional → KILLED
6. duplicateAndMutate : Substituted 0 with 1 → KILLED
|
for (int i = 0; i < children.size(); i++) { |
63
|
1
1. duplicateAndMutate : removed call to java/util/List::get → KILLED
|
final TreeNode<Operation<?>> treeNode = children.get(i); |
64
|
1
1. duplicateAndMutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getSize → KILLED
|
final int childSize = treeNode.getSize(); |
65
|
|
|
66
|
4
1. duplicateAndMutate : Substituted 1 with 0 → SURVIVED
2. duplicateAndMutate : Replaced integer addition with subtraction → KILLED
3. duplicateAndMutate : removed call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → KILLED
4. duplicateAndMutate : replaced call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate with argument → KILLED
|
final TreeNode<Operation<?>> childCopy = duplicateAndMutate(program, |
67
|
|
treeNode, |
68
|
|
cutPoint, |
69
|
|
currentIndex, |
70
|
|
currentDepth + 1); |
71
|
1
1. duplicateAndMutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::addChild → KILLED
|
duplicateRoot.addChild(childCopy); |
72
|
1
1. duplicateAndMutate : Replaced integer addition with subtraction → KILLED
|
currentIndex += childSize; |
73
|
|
} |
74
|
|
|
75
|
1
1. duplicateAndMutate : replaced return value with null for net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → KILLED
|
return duplicateRoot; |
76
|
|
} |
77
|
|
|
78
|
|
@Override |
79
|
|
public Genotype mutate(final Genotype originalGenotype) { |
80
|
|
Validate.notNull(originalGenotype); |
81
|
|
|
82
|
5
1. mutate : changed conditional boundary → SURVIVED
2. mutate : removed call to java/util/random/RandomGenerator::nextDouble → SURVIVED
3. mutate : removed conditional - replaced comparison check with true → SURVIVED
4. mutate : removed conditional - replaced comparison check with false → KILLED
5. mutate : negated conditional → KILLED
|
if (randomGenerator.nextDouble() >= populationMutationProbability) { |
83
|
1
1. mutate : replaced return value with null for net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::mutate → KILLED
|
return originalGenotype; |
84
|
|
} |
85
|
|
|
86
|
|
logger.trace("Mutating genotype {}", originalGenotype); |
87
|
|
|
88
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/Genotype::getSize → NO_COVERAGE
|
final Chromosome[] newChromosomes = new Chromosome[originalGenotype.getSize()]; |
89
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/Genotype::getChromosomes → NO_COVERAGE
|
final Chromosome[] chromosomes = originalGenotype.getChromosomes(); |
90
|
5
1. mutate : removed conditional - replaced comparison check with true → NO_COVERAGE
2. mutate : removed conditional - replaced comparison check with false → NO_COVERAGE
3. mutate : negated conditional → NO_COVERAGE
4. mutate : changed conditional boundary → NO_COVERAGE
5. mutate : Substituted 0 with 1 → NO_COVERAGE
|
for (int chromosomeIndex = 0; chromosomeIndex < chromosomes.length; chromosomeIndex++) { |
91
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::getChromosomeSpec → NO_COVERAGE
|
final ChromosomeSpec chromosomeSpec = eaConfiguration.getChromosomeSpec(chromosomeIndex); |
92
|
|
final Chromosome chromosome = chromosomes[chromosomeIndex]; |
93
|
|
|
94
|
3
1. mutate : removed conditional - replaced equality check with true → NO_COVERAGE
2. mutate : removed conditional - replaced equality check with false → NO_COVERAGE
3. mutate : negated conditional → NO_COVERAGE
|
if (chromosomeSpec instanceof ProgramTreeChromosomeSpec == false) { |
95
|
2
1. mutate : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
2. mutate : removed call to java/lang/String::valueOf → NO_COVERAGE
|
throw new IllegalArgumentException("This mutator does not support chromosome specs " + chromosomeSpec); |
96
|
|
} |
97
|
|
|
98
|
3
1. mutate : negated conditional → NO_COVERAGE
2. mutate : removed conditional - replaced equality check with true → NO_COVERAGE
3. mutate : removed conditional - replaced equality check with false → NO_COVERAGE
|
if (chromosome instanceof TreeChromosome<?> == false) { |
99
|
|
throw new IllegalArgumentException( |
100
|
3
1. mutate : removed call to java/lang/Class::getSimpleName → NO_COVERAGE
2. mutate : removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
3. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getClass → NO_COVERAGE
|
"This mutator does not support chromosome of type " + chromosome.getClass().getSimpleName()); |
101
|
|
} |
102
|
|
|
103
|
|
final ProgramTreeChromosomeSpec programTreeChromosomeSpec = (ProgramTreeChromosomeSpec) chromosomeSpec; |
104
|
|
|
105
|
|
final TreeChromosome<Operation<?>> treeChromosome = (TreeChromosome<Operation<?>>) chromosome; |
106
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getSize → NO_COVERAGE
|
final int chromosomeSize = treeChromosome.getSize(); |
107
|
|
|
108
|
5
1. mutate : removed conditional - replaced comparison check with true → NO_COVERAGE
2. mutate : Substituted 2 with 3 → NO_COVERAGE
3. mutate : removed conditional - replaced comparison check with false → NO_COVERAGE
4. mutate : negated conditional → NO_COVERAGE
5. mutate : changed conditional boundary → NO_COVERAGE
|
if (chromosomeSize > 2) { |
109
|
4
1. mutate : Replaced integer subtraction with addition → NO_COVERAGE
2. mutate : Substituted 1 with 0 → NO_COVERAGE
3. mutate : replaced call to java/util/random/RandomGenerator::nextInt with argument → NO_COVERAGE
4. mutate : removed call to java/util/random/RandomGenerator::nextInt → NO_COVERAGE
|
final int cutPoint = randomGenerator.nextInt(chromosomeSize - 1); |
110
|
|
|
111
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getRoot → NO_COVERAGE
|
final TreeNode<Operation<?>> root = treeChromosome.getRoot(); |
112
|
2
1. mutate : replaced call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate with argument → NO_COVERAGE
2. mutate : removed call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → NO_COVERAGE
|
final TreeNode<Operation<?>> newRoot = duplicateAndMutate(programTreeChromosomeSpec |
113
|
3
1. mutate : Substituted 0 with 1 → NO_COVERAGE
2. mutate : Substituted 0 with 1 → NO_COVERAGE
3. mutate : removed call to net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::program → NO_COVERAGE
|
.program(), root, cutPoint, 0, 0); |
114
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::<init> → NO_COVERAGE
|
final TreeChromosome<Operation<?>> newTreeChromosome = new TreeChromosome<>(newRoot); |
115
|
|
newChromosomes[chromosomeIndex] = newTreeChromosome; |
116
|
|
} else { |
117
|
2
1. mutate : removed call to net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::program → NO_COVERAGE
2. mutate : removed call to net/bmahe/genetics4j/gp/program/ProgramGenerator::generate → NO_COVERAGE
|
final TreeNode<Operation<Object>> newRoot = programGenerator.generate(programTreeChromosomeSpec.program(), |
118
|
2
1. mutate : removed call to net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::program → NO_COVERAGE
2. mutate : removed call to net/bmahe/genetics4j/gp/program/Program::maxDepth → NO_COVERAGE
|
programTreeChromosomeSpec.program().maxDepth()); |
119
|
1
1. mutate : removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::<init> → NO_COVERAGE
|
final TreeChromosome<Operation<Object>> newTreeChromosome = new TreeChromosome<>(newRoot); |
120
|
|
|
121
|
|
newChromosomes[chromosomeIndex] = newTreeChromosome; |
122
|
|
} |
123
|
|
|
124
|
|
logger.trace("\tChromosome {} - {}", chromosomeIndex, newChromosomes[chromosomeIndex]); |
125
|
|
} |
126
|
|
|
127
|
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/ProgramRandomMutateMutator::mutate → NO_COVERAGE
|
return new Genotype(newChromosomes); |
128
|
|
} |
129
|
|
} |
| | Mutations |
37 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Removed assignment to member variable programGenerator → KILLED
|
38 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()] Removed assignment to member variable randomGenerator → KILLED
|
39 |
|
1.1 Location : <init> Killed by : none Removed assignment to member variable eaConfiguration → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()]
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutatePolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutatePolicyHandlerTest]/[method:createMutator()]
|
40 |
|
1.1 Location : <init> Killed by : none Removed assignment to member variable populationMutationProbability → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()]
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutatePolicyHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutatePolicyHandlerTest]/[method:createMutator()]
|
49 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getData → KILLED
|
51 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] negated conditional → KILLED
2.2 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed conditional - replaced equality check with false → KILLED
3.3 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed conditional - replaced equality check with true → KILLED
|
52 |
|
1.1 Location : duplicateAndMutate Killed by : none Replaced integer subtraction with addition → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
2.2 Location : duplicateAndMutate Killed by : none removed call to net/bmahe/genetics4j/gp/program/Program::maxDepth → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
3.3 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to java/lang/Math::max → KILLED
4.4 Location : duplicateAndMutate Killed by : none replaced call to java/lang/Math::max with argument → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
5.5 Location : duplicateAndMutate Killed by : none Substituted 1 with 0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
|
53 |
|
1.1 Location : duplicateAndMutate Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
2.2 Location : duplicateAndMutate Killed by : none removed conditional - replaced comparison check with false → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
3.3 Location : duplicateAndMutate Killed by : none Replaced integer subtraction with addition → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
4.4 Location : duplicateAndMutate Killed by : none Substituted 1 with 0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
5.5 Location : duplicateAndMutate Killed by : none Substituted 1 with 0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
6.6 Location : duplicateAndMutate Killed by : none replaced call to java/util/random/RandomGenerator::nextInt with argument → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
7.7 Location : duplicateAndMutate Killed by : none Substituted 1 with 0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
8.8 Location : duplicateAndMutate Killed by : none negated conditional → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
9.9 Location : duplicateAndMutate Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
10.10 Location : duplicateAndMutate Killed by : none removed call to java/util/random/RandomGenerator::nextInt → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
11.11 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Replaced integer addition with subtraction → KILLED
|
54 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/gp/program/ProgramGenerator::generate → KILLED
2.2 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] replaced return value with null for net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → KILLED
3.3 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/gp/Operation::returnedType → KILLED
|
57 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getChildren → KILLED
|
59 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::<init> → KILLED
|
61 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Replaced integer addition with subtraction → KILLED
2.2 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Substituted 1 with 0 → KILLED
|
62 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] changed conditional boundary → KILLED
2.2 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed conditional - replaced comparison check with false → KILLED
3.3 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to java/util/List::size → KILLED
4.4 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed conditional - replaced comparison check with true → KILLED
5.5 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] negated conditional → KILLED
6.6 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Substituted 0 with 1 → KILLED
|
63 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to java/util/List::get → KILLED
|
64 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::getSize → KILLED
|
66 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Replaced integer addition with subtraction → KILLED
2.2 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → KILLED
3.3 Location : duplicateAndMutate Killed by : none Substituted 1 with 0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()]
4.4 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] replaced call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate with argument → KILLED
|
71 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] removed call to net/bmahe/genetics4j/core/chromosomes/TreeNode::addChild → KILLED
|
72 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] Replaced integer addition with subtraction → KILLED
|
75 |
|
1.1 Location : duplicateAndMutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:simple()] replaced return value with null for net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → KILLED
|
82 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()] removed conditional - replaced comparison check with false → KILLED
2.2 Location : mutate Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()]
3.3 Location : mutate Killed by : none removed call to java/util/random/RandomGenerator::nextDouble → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()]
4.4 Location : mutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()] negated conditional → KILLED
5.5 Location : mutate Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()]
|
83 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.mutation.ProgramRandomMutateMutatorTest]/[method:noMutate()] replaced return value with null for net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::mutate → KILLED
|
88 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/Genotype::getSize → NO_COVERAGE
|
89 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/Genotype::getChromosomes → NO_COVERAGE
|
90 |
|
1.1 Location : mutate Killed by : none removed conditional - replaced comparison check with true → NO_COVERAGE
2.2 Location : mutate Killed by : none removed conditional - replaced comparison check with false → NO_COVERAGE
3.3 Location : mutate Killed by : none negated conditional → NO_COVERAGE
4.4 Location : mutate Killed by : none changed conditional boundary → NO_COVERAGE
5.5 Location : mutate Killed by : none Substituted 0 with 1 → NO_COVERAGE
|
91 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/spec/AbstractEAConfiguration::getChromosomeSpec → NO_COVERAGE
|
94 |
|
1.1 Location : mutate Killed by : none removed conditional - replaced equality check with true → 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 negated conditional → NO_COVERAGE
|
95 |
|
1.1 Location : mutate Killed by : none removed call to java/lang/IllegalArgumentException::<init> → NO_COVERAGE
2.2 Location : mutate Killed by : none removed call to java/lang/String::valueOf → NO_COVERAGE
|
98 |
|
1.1 Location : mutate Killed by : none negated conditional → NO_COVERAGE
2.2 Location : mutate Killed by : none removed conditional - replaced equality check with true → NO_COVERAGE
3.3 Location : mutate Killed by : none removed conditional - replaced equality check with false → NO_COVERAGE
|
100 |
|
1.1 Location : mutate Killed by : none removed call to java/lang/Class::getSimpleName → 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 net/bmahe/genetics4j/core/chromosomes/Chromosome::getClass → NO_COVERAGE
|
106 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getSize → NO_COVERAGE
|
108 |
|
1.1 Location : mutate Killed by : none removed conditional - replaced comparison check with true → NO_COVERAGE
2.2 Location : mutate Killed by : none Substituted 2 with 3 → NO_COVERAGE
3.3 Location : mutate Killed by : none removed conditional - replaced comparison check with false → NO_COVERAGE
4.4 Location : mutate Killed by : none negated conditional → NO_COVERAGE
5.5 Location : mutate Killed by : none changed conditional boundary → NO_COVERAGE
|
109 |
|
1.1 Location : mutate Killed by : none Replaced integer subtraction with addition → NO_COVERAGE
2.2 Location : mutate Killed by : none Substituted 1 with 0 → NO_COVERAGE
3.3 Location : mutate Killed by : none replaced call to java/util/random/RandomGenerator::nextInt with argument → NO_COVERAGE
4.4 Location : mutate Killed by : none removed call to java/util/random/RandomGenerator::nextInt → NO_COVERAGE
|
111 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::getRoot → NO_COVERAGE
|
112 |
|
1.1 Location : mutate Killed by : none replaced call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate with argument → NO_COVERAGE
2.2 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/gp/mutation/ProgramRandomMutateMutator::duplicateAndMutate → NO_COVERAGE
|
113 |
|
1.1 Location : mutate Killed by : none Substituted 0 with 1 → NO_COVERAGE
2.2 Location : mutate Killed by : none Substituted 0 with 1 → NO_COVERAGE
3.3 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/gp/spec/chromosome/ProgramTreeChromosomeSpec::program → NO_COVERAGE
|
114 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::<init> → NO_COVERAGE
|
117 |
|
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 removed call to net/bmahe/genetics4j/gp/program/ProgramGenerator::generate → NO_COVERAGE
|
118 |
|
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 removed call to net/bmahe/genetics4j/gp/program/Program::maxDepth → NO_COVERAGE
|
119 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/TreeChromosome::<init> → NO_COVERAGE
|
127 |
|
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/ProgramRandomMutateMutator::mutate → NO_COVERAGE
|