AbstractNeatChromosomeConnectionMutationHandler.java

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

Mutations

34

1.1
Location : getMutationClazz
Killed by : none
replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::getMutationClazz → NO_COVERAGE

38

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

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:canHandle()]
Removed assignment to member variable mutationClazz → KILLED

47

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

55

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

67

1.1
Location : mutate
Killed by : none
removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getMinWeightValue → SURVIVED
Covering tests

68

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

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 net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED

71

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

73

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

75

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

77

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

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()]
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

82

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

83

1.1
Location : mutate
Killed by : none
replaced call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf with argument → SURVIVED
Covering tests

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

84

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

86

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

92

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

93

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/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::mutateConnection → KILLED

94

1.1
Location : mutate
Killed by : none
removed call to java/lang/Class::cast → SURVIVED
Covering tests

2.2
Location : mutate
Killed by : none
replaced call to java/lang/Class::cast with argument → SURVIVED Covering tests

98

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

99

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

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()]
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()]
negated conditional → 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 call to java/util/List::size → 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

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::get → KILLED

106

1.1
Location : mutate
Killed by : none
replaced call to net/bmahe/genetics4j/neat/ImmutableConnection::copyOf with argument → SURVIVED
Covering tests

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

107

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

109

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

2.2
Location : mutate
Killed by : none
Removed increment 1 → TIMED_OUT

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()]
removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::<init> → 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()]
replaced return value with null for net/bmahe/genetics4j/neat/mutation/chromosome/AbstractNeatChromosomeConnectionMutationHandler::mutate → 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 net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNodeLayout → KILLED

Active mutators

Tests examined


Report generated by PIT 1.23.1 support