1
|
|
package net.bmahe.genetics4j.neat.mutation.chromosome; |
2
|
|
|
3
|
|
import java.util.ArrayList; |
4
|
|
import java.util.Comparator; |
5
|
|
import java.util.List; |
6
|
|
import java.util.random.RandomGenerator; |
7
|
|
|
8
|
|
import org.apache.commons.lang3.Validate; |
9
|
|
|
10
|
|
import net.bmahe.genetics4j.neat.Connection; |
11
|
|
import net.bmahe.genetics4j.neat.InnovationManager; |
12
|
|
import net.bmahe.genetics4j.neat.chromosomes.NeatChromosome; |
13
|
|
import net.bmahe.genetics4j.neat.spec.mutation.AddNode; |
14
|
|
|
15
|
|
public class NeatChromosomeAddNodeMutationHandler extends AbstractNeatChromosomeConnectionMutationHandler<AddNode> { |
16
|
|
|
17
|
|
private final RandomGenerator randomGenerator; |
18
|
|
private final InnovationManager innovationManager; |
19
|
|
|
20
|
|
public NeatChromosomeAddNodeMutationHandler(final RandomGenerator _randomGenerator, |
21
|
|
final InnovationManager _innovationManager) { |
22
|
|
super(AddNode.class, _randomGenerator); |
23
|
|
Validate.notNull(_randomGenerator); |
24
|
|
Validate.notNull(_innovationManager); |
25
|
|
|
26
|
1
1. <init> : Removed assignment to member variable randomGenerator → SURVIVED
|
this.randomGenerator = _randomGenerator; |
27
|
1
1. <init> : Removed assignment to member variable innovationManager → KILLED
|
this.innovationManager = _innovationManager; |
28
|
|
} |
29
|
|
|
30
|
|
@Override |
31
|
|
protected List<Connection> mutateConnection(final AddNode mutationPolicy, final NeatChromosome neatChromosome, |
32
|
|
final Connection oldConnection, final int i) { |
33
|
|
|
34
|
1
1. mutateConnection : removed call to java/util/ArrayList::<init> → KILLED
|
final List<Connection> connections = new ArrayList<>(); |
35
|
|
|
36
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
final var disabledConnection = Connection.builder() |
37
|
3
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
2. mutateConnection : Substituted 0 with 1 → KILLED
3. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
|
.from(oldConnection) |
38
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::isEnabled → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::isEnabled with receiver → KILLED
|
.isEnabled(false) |
39
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
|
.build(); |
40
|
1
1. mutateConnection : removed call to java/util/List::add → KILLED
|
connections.add(disabledConnection); |
41
|
|
|
42
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED
|
final int maxNodeConnectionsValue = neatChromosome.getConnections() |
43
|
1
1. mutateConnection : removed call to java/util/List::stream → KILLED
|
.stream() |
44
|
8
1. lambda$mutateConnection$0 : removed call to net/bmahe/genetics4j/neat/Connection::toNodeIndex → SURVIVED
2. lambda$mutateConnection$0 : replaced call to java/lang/Math::max with argument → SURVIVED
3. lambda$mutateConnection$0 : removed call to net/bmahe/genetics4j/neat/Connection::fromNodeIndex → SURVIVED
4. lambda$mutateConnection$0 : removed call to java/lang/Math::max → KILLED
5. lambda$mutateConnection$0 : replaced Integer return value with 0 for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeAddNodeMutationHandler::lambda$mutateConnection$0 → KILLED
6. mutateConnection : replaced call to java/util/stream/Stream::map with receiver → KILLED
7. lambda$mutateConnection$0 : removed call to java/lang/Integer::valueOf → KILLED
8. mutateConnection : removed call to java/util/stream/Stream::map → KILLED
|
.map(connection -> Math.max(connection.fromNodeIndex(), connection.toNodeIndex())) |
45
|
3
1. mutateConnection : Substituted 0 with 1 → SURVIVED
2. mutateConnection : removed call to java/util/Comparator::naturalOrder → KILLED
3. mutateConnection : removed call to java/util/stream/Stream::max → KILLED
|
.max(Comparator.naturalOrder()) |
46
|
4
1. mutateConnection : removed call to java/lang/Integer::valueOf → SURVIVED
2. mutateConnection : replaced call to java/util/Optional::orElse with argument → KILLED
3. mutateConnection : removed call to java/lang/Integer::intValue → KILLED
4. mutateConnection : removed call to java/util/Optional::orElse → KILLED
|
.orElse(0); |
47
|
|
|
48
|
2
1. mutateConnection : replaced call to java/lang/Math::max with argument → KILLED
2. mutateConnection : removed call to java/lang/Math::max → KILLED
|
final int maxNodeValue = Math.max(maxNodeConnectionsValue, |
49
|
5
1. mutateConnection : Substituted 1 with 0 → SURVIVED
2. mutateConnection : Replaced integer subtraction with addition → SURVIVED
3. mutateConnection : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumInputs → SURVIVED
4. mutateConnection : Replaced integer addition with subtraction → SURVIVED
5. mutateConnection : removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumOutputs → SURVIVED
|
neatChromosome.getNumInputs() + neatChromosome.getNumOutputs() - 1); |
50
|
|
|
51
|
2
1. mutateConnection : Replaced integer addition with subtraction → KILLED
2. mutateConnection : Substituted 1 with 0 → KILLED
|
final int newNodeValue = maxNodeValue + 1; |
52
|
|
|
53
|
3
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::fromNodeIndex → SURVIVED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId with argument → KILLED
3. mutateConnection : removed call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId → KILLED
|
final int firstInnovation = innovationManager.computeNewId(oldConnection.fromNodeIndex(), newNodeValue); |
54
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
final var firstConnection = Connection.builder() |
55
|
3
1. mutateConnection : Substituted 1.0 with 2.0 → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
3. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
|
.from(oldConnection) |
56
|
2
1. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::weight with receiver → KILLED
2. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::weight → KILLED
|
.weight(1.0f) |
57
|
2
1. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::toNodeIndex with receiver → KILLED
2. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::toNodeIndex → KILLED
|
.toNodeIndex(newNodeValue) |
58
|
2
1. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::innovation with receiver → KILLED
2. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::innovation → KILLED
|
.innovation(firstInnovation) |
59
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
|
.build(); |
60
|
1
1. mutateConnection : removed call to java/util/List::add → KILLED
|
connections.add(firstConnection); |
61
|
|
|
62
|
3
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::toNodeIndex → SURVIVED
2. mutateConnection : removed call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId → KILLED
3. mutateConnection : replaced call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId with argument → KILLED
|
final int secondInnovation = innovationManager.computeNewId(newNodeValue, oldConnection.toNodeIndex()); |
63
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
final var secondConnection = Connection.builder() |
64
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
|
.from(oldConnection) |
65
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::fromNodeIndex → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::fromNodeIndex with receiver → KILLED
|
.fromNodeIndex(newNodeValue) |
66
|
2
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::innovation → KILLED
2. mutateConnection : replaced call to net/bmahe/genetics4j/neat/Connection$Builder::innovation with receiver → KILLED
|
.innovation(secondInnovation) |
67
|
1
1. mutateConnection : removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
|
.build(); |
68
|
1
1. mutateConnection : removed call to java/util/List::add → KILLED
|
connections.add(secondConnection); |
69
|
|
|
70
|
1
1. mutateConnection : replaced return value with Collections.emptyList for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeAddNodeMutationHandler::mutateConnection → KILLED
|
return connections; |
71
|
|
} |
72
|
|
|
73
|
|
} |
| | Mutations |
26 |
|
1.1 Location : <init> Killed by : none Removed assignment to member variable randomGenerator → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
- net.bmahe.genetics4j.neat.NeatEAExecutionContextsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.NeatEAExecutionContextsTest]/[method:standard()]
- net.bmahe.genetics4j.neat.NeatEAExecutionContextsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.NeatEAExecutionContextsTest]/[method:enrichWithNeat()]
|
27 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] Removed assignment to member variable innovationManager → KILLED
|
34 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/ArrayList::<init> → KILLED
|
36 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
37 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] Substituted 0 with 1 → KILLED
3.3 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
|
38 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::isEnabled → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::isEnabled with receiver → KILLED
|
39 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
|
40 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/List::add → KILLED
|
42 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getConnections → KILLED
|
43 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/List::stream → KILLED
|
44 |
|
1.1 Location : lambda$mutateConnection$0 Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/lang/Math::max → KILLED
2.2 Location : lambda$mutateConnection$0 Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced Integer return value with 0 for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeAddNodeMutationHandler::lambda$mutateConnection$0 → KILLED
3.3 Location : lambda$mutateConnection$0 Killed by : none removed call to net/bmahe/genetics4j/neat/Connection::toNodeIndex → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
4.4 Location : lambda$mutateConnection$0 Killed by : none replaced call to java/lang/Math::max with argument → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
5.5 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to java/util/stream/Stream::map with receiver → KILLED
6.6 Location : lambda$mutateConnection$0 Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/lang/Integer::valueOf → KILLED
7.7 Location : lambda$mutateConnection$0 Killed by : none removed call to net/bmahe/genetics4j/neat/Connection::fromNodeIndex → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
8.8 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/stream/Stream::map → KILLED
|
45 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/Comparator::naturalOrder → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/stream/Stream::max → KILLED
3.3 Location : mutateConnection Killed by : none Substituted 0 with 1 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
|
46 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to java/util/Optional::orElse with argument → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/lang/Integer::intValue → KILLED
3.3 Location : mutateConnection Killed by : none removed call to java/lang/Integer::valueOf → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
4.4 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/Optional::orElse → KILLED
|
48 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to java/lang/Math::max with argument → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/lang/Math::max → KILLED
|
49 |
|
1.1 Location : mutateConnection Killed by : none Substituted 1 with 0 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
2.2 Location : mutateConnection Killed by : none Replaced integer subtraction with addition → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
3.3 Location : mutateConnection Killed by : none removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumInputs → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
4.4 Location : mutateConnection Killed by : none Replaced integer addition with subtraction → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
5.5 Location : mutateConnection Killed by : none removed call to net/bmahe/genetics4j/neat/chromosomes/NeatChromosome::getNumOutputs → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
|
51 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] Replaced integer addition with subtraction → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] Substituted 1 with 0 → KILLED
|
53 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId with argument → KILLED
2.2 Location : mutateConnection Killed by : none removed call to net/bmahe/genetics4j/neat/Connection::fromNodeIndex → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
3.3 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId → KILLED
|
54 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
55 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] Substituted 1.0 with 2.0 → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
3.3 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
|
56 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::weight with receiver → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::weight → KILLED
|
57 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::toNodeIndex with receiver → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::toNodeIndex → KILLED
|
58 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::innovation with receiver → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::innovation → KILLED
|
59 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
|
60 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/List::add → KILLED
|
62 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/InnovationManager::computeNewId with argument → KILLED
3.3 Location : mutateConnection Killed by : none removed call to net/bmahe/genetics4j/neat/Connection::toNodeIndex → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()]
|
63 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection::builder → KILLED
|
64 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::from → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::from with receiver → KILLED
|
65 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::fromNodeIndex → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::fromNodeIndex with receiver → KILLED
|
66 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::innovation → KILLED
2.2 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced call to net/bmahe/genetics4j/neat/Connection$Builder::innovation with receiver → KILLED
|
67 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to net/bmahe/genetics4j/neat/Connection$Builder::build → KILLED
|
68 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] removed call to java/util/List::add → KILLED
|
70 |
|
1.1 Location : mutateConnection Killed by : net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.neat.mutation.chromosome.NeatChromosomeAddNodeMutationHandlerTest]/[method:mutateConnection()] replaced return value with Collections.emptyList for net/bmahe/genetics4j/neat/mutation/chromosome/NeatChromosomeAddNodeMutationHandler::mutateConnection → KILLED
|