|
1
|
|
package net.bmahe.genetics4j.neat.mutation.chromosome; |
|
2
|
|
|
|
3
|
|
import java.util.ArrayList; |
|
4
|
|
import java.util.List; |
|
5
|
|
import java.util.random.RandomGenerator; |
|
6
|
|
|
|
7
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
8
|
|
import org.apache.commons.lang3.Validate; |
|
9
|
|
import org.apache.logging.log4j.LogManager; |
|
10
|
|
import org.apache.logging.log4j.Logger; |
|
11
|
|
|
|
12
|
|
import net.bmahe.genetics4j.core.chromosomes.Chromosome; |
|
13
|
|
import net.bmahe.genetics4j.core.mutation.chromosome.ChromosomeMutationHandler; |
|
14
|
|
import net.bmahe.genetics4j.core.spec.chromosome.ChromosomeSpec; |
|
15
|
|
import net.bmahe.genetics4j.core.spec.mutation.MutationPolicy; |
|
16
|
|
import net.bmahe.genetics4j.neat.Connection; |
|
17
|
|
import net.bmahe.genetics4j.neat.ImmutableConnection; |
|
18
|
|
import net.bmahe.genetics4j.neat.chromosomes.NeatChromosome; |
|
19
|
|
import net.bmahe.genetics4j.neat.spec.NeatChromosomeSpec; |
|
20
|
|
|
|
21
|
|
public abstract class AbstractNeatChromosomeConnectionMutationHandler<T> |
|
22
|
|
implements ChromosomeMutationHandler<NeatChromosome> |
|
23
|
|
{ |
|
24
|
|
public final Logger logger = LogManager.getLogger(this.getClass()); |
|
25
|
|
|
|
26
|
|
private final Class<T> mutationClazz; |
|
27
|
|
private final RandomGenerator randomGenerator; |
|
28
|
|
|
|
29
|
|
protected abstract List<Connection> mutateConnection(final T mutationPolicy, final NeatChromosome neatChromosome, |
|
30
|
|
final Connection oldConnection, final int i); |
|
31
|
|
|
|
32
|
|
protected Class<T> getMutationClazz() { |
|
33
|
1
1. getMutationClazz : replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::getMutationClazz → NO_COVERAGE
|
return mutationClazz; |
|
34
|
|
} |
|
35
|
|
|
|
36
|
|
protected RandomGenerator getRandomGenerator() { |
|
37
|
1
1. getRandomGenerator : replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::getRandomGenerator → KILLED
|
return randomGenerator; |
|
38
|
|
} |
|
39
|
|
|
|
40
|
|
public AbstractNeatChromosomeConnectionMutationHandler(final Class<T> _mutationClazz, |
|
41
|
|
final RandomGenerator _randomGenerator) { |
|
42
|
|
Validate.notNull(_mutationClazz); |
|
43
|
|
Validate.notNull(_randomGenerator); |
|
44
|
|
|
|
45
|
1
1. <init> : Removed assignment to member variable mutationClazz → KILLED
|
this.mutationClazz = _mutationClazz; |
|
46
|
1
1. <init> : Removed assignment to member variable randomGenerator → KILLED
|
this.randomGenerator = _randomGenerator; |
|
47
|
|
} |
|
48
|
|
|
|
49
|
|
@Override |
|
50
|
|
public boolean canHandle(final MutationPolicy mutationPolicy, final ChromosomeSpec chromosome) { |
|
51
|
|
Validate.notNull(mutationPolicy); |
|
52
|
|
Validate.notNull(chromosome); |
|
53
|
|
|
|
54
|
10
1. canHandle : removed conditional - replaced equality check with true → KILLED
2. canHandle : removed conditional - replaced equality check with false → KILLED
3. canHandle : negated conditional → KILLED
4. canHandle : removed conditional - replaced equality check with false → KILLED
5. canHandle : removed call to java/lang/Class::isInstance → KILLED
6. canHandle : replaced boolean return with true for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::canHandle → KILLED
7. canHandle : removed conditional - replaced equality check with true → KILLED
8. canHandle : negated conditional → KILLED
9. canHandle : Substituted 0 with 1 → KILLED
10. canHandle : Substituted 1 with 0 → KILLED
|
return mutationClazz.isInstance(mutationPolicy) && chromosome instanceof NeatChromosomeSpec; |
|
55
|
|
} |
|
56
|
|
|
|
57
|
|
@Override |
|
58
|
|
public NeatChromosome mutate(final MutationPolicy mutationPolicy, final Chromosome chromosome) { |
|
59
|
|
Validate.notNull(mutationPolicy); |
|
60
|
|
Validate.notNull(chromosome); |
|
61
|
|
Validate.isInstanceOf(mutationClazz, mutationPolicy); |
|
62
|
|
Validate.isInstanceOf(NeatChromosome.class, chromosome); |
|
63
|
|
|
|
64
|
|
final var neatChromosome = (NeatChromosome) chromosome; |
|
65
|
|
|
|
66
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMinWeightValue → SURVIVED
|
final var minValue = neatChromosome.getMinWeightValue(); |
|
67
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMaxWeightValue → KILLED
|
final var maxValue = neatChromosome.getMaxWeightValue(); |
|
68
|
|
|
|
69
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED
|
final var oldConnections = neatChromosome.getConnections(); |
|
70
|
1
1. mutate : removed call to java/util/ArrayList::<init> → KILLED
|
final List<Connection> newConnections = new ArrayList<>(); |
|
71
|
|
|
|
72
|
4
1. mutate : removed conditional - replaced equality check with false → KILLED
2. mutate : removed conditional - replaced equality check with true → KILLED
3. mutate : removed call to org/apache/commons/collections4/CollectionUtils::isNotEmpty → KILLED
4. mutate : negated conditional → KILLED
|
if (CollectionUtils.isNotEmpty(oldConnections)) { |
|
73
|
|
|
|
74
|
3
1. mutate : removed call to java/util/random/RandomGenerator::nextInt → KILLED
2. mutate : removed call to java/util/List::size → KILLED
3. mutate : replaced call to java/util/random/RandomGenerator::nextInt with argument → KILLED
|
final int alleleFlipIndex = randomGenerator.nextInt(oldConnections.size()); |
|
75
|
|
|
|
76
|
1
1. mutate : Substituted 0 with 1 → KILLED
|
int i = 0; |
|
77
|
|
/** |
|
78
|
|
* Copy every connection prior to the alleleFlipIndex |
|
79
|
|
*/ |
|
80
|
4
1. mutate : negated conditional → KILLED
2. mutate : removed conditional - replaced comparison check with true → KILLED
3. mutate : changed conditional boundary → KILLED
4. mutate : removed conditional - replaced comparison check with false → KILLED
|
while (i < alleleFlipIndex) { |
|
81
|
1
1. mutate : removed call to java/util/List::get → KILLED
|
final var connection = oldConnections.get(i); |
|
82
|
2
1. mutate : replaced call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf with argument → SURVIVED
2. mutate : removed call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf → KILLED
|
final var newConnection = ImmutableConnection.copyOf(connection); |
|
83
|
1
1. mutate : removed call to java/util/List::add → KILLED
|
newConnections.add(newConnection); |
|
84
|
|
|
|
85
|
1
1. mutate : Changed increment from 1 to -1 → KILLED
|
i++; |
|
86
|
|
} |
|
87
|
|
|
|
88
|
|
/** |
|
89
|
|
* Pick a random weight |
|
90
|
|
*/ |
|
91
|
1
1. mutate : removed call to java/util/List::get → KILLED
|
final var oldConnection = oldConnections.get(i); |
|
92
|
3
1. mutate : replaced call to java/lang/Class::cast with argument → SURVIVED
2. mutate : removed call to java/lang/Class::cast → SURVIVED
3. mutate : removed call to net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::mutateConnection → KILLED
|
final var mutatedConnection = mutateConnection(mutationClazz.cast(mutationPolicy), |
|
93
|
|
neatChromosome, |
|
94
|
|
oldConnection, |
|
95
|
|
i); |
|
96
|
1
1. mutate : removed call to java/util/List::addAll → KILLED
|
newConnections.addAll(mutatedConnection); |
|
97
|
2
1. mutate : Removed increment 1 → KILLED
2. mutate : Changed increment from 1 to -1 → KILLED
|
i++; |
|
98
|
|
|
|
99
|
|
/** |
|
100
|
|
* Copy every connection after to the alleleFlipIndex |
|
101
|
|
*/ |
|
102
|
5
1. mutate : changed conditional boundary → KILLED
2. mutate : removed conditional - replaced comparison check with false → KILLED
3. mutate : removed call to java/util/List::size → KILLED
4. mutate : negated conditional → KILLED
5. mutate : removed conditional - replaced comparison check with true → KILLED
|
while (i < oldConnections.size()) { |
|
103
|
1
1. mutate : removed call to java/util/List::get → KILLED
|
final var connection = oldConnections.get(i); |
|
104
|
2
1. mutate : replaced call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf with argument → SURVIVED
2. mutate : removed call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf → KILLED
|
final var newConnection = ImmutableConnection.copyOf(connection); |
|
105
|
1
1. mutate : removed call to java/util/List::add → KILLED
|
newConnections.add(newConnection); |
|
106
|
|
|
|
107
|
2
1. mutate : Removed increment 1 → TIMED_OUT
2. mutate : Changed increment from 1 to -1 → KILLED
|
i++; |
|
108
|
|
} |
|
109
|
|
|
|
110
|
|
} |
|
111
|
|
|
|
112
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumInputs → KILLED
|
final var numInputs = neatChromosome.getNumInputs(); |
|
113
|
1
1. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumOutputs → KILLED
|
final var numOutputs = neatChromosome.getNumOutputs(); |
|
114
|
2
1. mutate : replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::mutate → KILLED
2. mutate : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::<init> → KILLED
|
return new NeatChromosome(numInputs, numOutputs, minValue, maxValue, newConnections); |
|
115
|
|
} |
|
116
|
|
} |
| | Mutations |
| 33 |
|
1.1 Location : getMutationClazz Killed by : none replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::getMutationClazz → NO_COVERAGE
|
| 37 |
|
1.1 Location : getRandomGenerator Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeRandomMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeRandomMutationHandlerTest]/[method:mutateConnection()] replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::getRandomGenerator → KILLED
|
| 45 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] Removed assignment to member variable mutationClazz → KILLED
|
| 46 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] Removed assignment to member variable randomGenerator → KILLED
|
| 54 |
|
1.1 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with true → KILLED
2.2 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with false → KILLED
3.3 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] negated conditional → KILLED
4.4 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with false → KILLED
5.5 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] removed call to java/lang/Class::isInstance → KILLED
6.6 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] replaced boolean return with true for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::canHandle → KILLED
7.7 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] removed conditional - replaced equality check with true → KILLED
8.8 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] negated conditional → KILLED
9.9 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] Substituted 0 with 1 → KILLED
10.10 Location : canHandle Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:canHandle()] Substituted 1 with 0 → KILLED
|
| 66 |
|
1.1 Location : mutate Killed by : none removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMinWeightValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()]
|
| 67 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMaxWeightValue → KILLED
|
| 69 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED
|
| 70 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/ArrayList::<init> → KILLED
|
| 72 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed conditional - replaced equality check with false → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed conditional - replaced equality check with true → KILLED
3.3 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to org/apache/commons/collections4/CollectionUtils::isNotEmpty → KILLED
4.4 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] negated conditional → KILLED
|
| 74 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/random/RandomGenerator::nextInt → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::size → KILLED
3.3 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] replaced call to java/util/random/RandomGenerator::nextInt with argument → KILLED
|
| 76 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] Substituted 0 with 1 → KILLED
|
| 80 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] negated conditional → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed conditional - replaced comparison check with true → KILLED
3.3 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] changed conditional boundary → KILLED
4.4 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed conditional - replaced comparison check with false → KILLED
|
| 81 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::get → KILLED
|
| 82 |
|
1.1 Location : mutate Killed by : none replaced call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf with argument → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()]
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf → KILLED
|
| 83 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::add → KILLED
|
| 85 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] Changed increment from 1 to -1 → KILLED
|
| 91 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::get → KILLED
|
| 92 |
|
1.1 Location : mutate Killed by : none replaced call to java/lang/Class::cast with argument → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()]
2.2 Location : mutate Killed by : none removed call to java/lang/Class::cast → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()]
3.3 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::mutateConnection → KILLED
|
| 96 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::addAll → KILLED
|
| 97 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] Removed increment 1 → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] Changed increment from 1 to -1 → KILLED
|
| 102 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] changed conditional boundary → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed conditional - replaced comparison check with false → KILLED
3.3 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::size → KILLED
4.4 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] negated conditional → KILLED
5.5 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed conditional - replaced comparison check with true → KILLED
|
| 103 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::get → KILLED
|
| 104 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf → KILLED
2.2 Location : mutate Killed by : none replaced call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf with argument → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()]
|
| 105 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to java/util/List::add → KILLED
|
| 107 |
|
1.1 Location : mutate Killed by : none Removed increment 1 → TIMED_OUT
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] Changed increment from 1 to -1 → KILLED
|
| 112 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumInputs → KILLED
|
| 113 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumOutputs → KILLED
|
| 114 |
|
1.1 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::mutate → KILLED
2.2 Location : mutate Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.AbstractNeatChromosomeConnectionMutationHandlerTest]/[method:mutate()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::<init> → KILLED
|