1
|
|
package net.bmahe.genetics4j.core.combination.multipointarithmetic; |
2
|
|
|
3
|
|
import java.util.List; |
4
|
|
import java.util.random.RandomGenerator; |
5
|
|
|
6
|
|
import org.apache.commons.lang3.Validate; |
7
|
|
|
8
|
|
import net.bmahe.genetics4j.core.chromosomes.Chromosome; |
9
|
|
import net.bmahe.genetics4j.core.chromosomes.IntChromosome; |
10
|
|
import net.bmahe.genetics4j.core.combination.ChromosomeCombinator; |
11
|
|
import net.bmahe.genetics4j.core.spec.AbstractEAConfiguration; |
12
|
|
import net.bmahe.genetics4j.core.spec.combination.MultiPointArithmetic; |
13
|
|
|
14
|
|
public class IntChromosomeMultiPointArithmetic<T extends Comparable<T>> implements ChromosomeCombinator<T> { |
15
|
|
|
16
|
|
private final RandomGenerator randomGenerator; |
17
|
|
|
18
|
|
private final MultiPointArithmetic multiPointArithmeticPolicy; |
19
|
|
|
20
|
|
public IntChromosomeMultiPointArithmetic(final RandomGenerator _randomGenerator, |
21
|
|
final MultiPointArithmetic _multiPointArithmeticPolicy) { |
22
|
|
Validate.notNull(_randomGenerator); |
23
|
|
Validate.notNull(_multiPointArithmeticPolicy); |
24
|
|
|
25
|
1
1. <init> : Removed assignment to member variable randomGenerator → KILLED
|
this.randomGenerator = _randomGenerator; |
26
|
1
1. <init> : Removed assignment to member variable multiPointArithmeticPolicy → KILLED
|
this.multiPointArithmeticPolicy = _multiPointArithmeticPolicy; |
27
|
|
} |
28
|
|
|
29
|
|
@Override |
30
|
|
public List<Chromosome> combine(final AbstractEAConfiguration<T> eaConfiguration, final Chromosome chromosome1, |
31
|
|
final T firstParentFitness, final Chromosome chromosome2, final T secondParentFitness) { |
32
|
|
Validate.notNull(chromosome1); |
33
|
|
Validate.notNull(chromosome2); |
34
|
|
Validate.isInstanceOf(IntChromosome.class, chromosome1); |
35
|
|
Validate.isInstanceOf(IntChromosome.class, chromosome2); |
36
|
|
Validate.isTrue(chromosome1.getNumAlleles() == chromosome2.getNumAlleles()); |
37
|
|
|
38
|
|
Validate.isTrue(multiPointArithmeticPolicy.numCrossovers() < chromosome1.getNumAlleles()); |
39
|
|
Validate.isTrue(multiPointArithmeticPolicy.numCrossovers() < chromosome2.getNumAlleles()); |
40
|
|
|
41
|
1
1. combine : removed call to net/bmahe/genetics4j/core/spec/combination/MultiPointArithmetic::numCrossovers → KILLED
|
final int numCrossovers = multiPointArithmeticPolicy.numCrossovers(); |
42
|
1
1. combine : removed call to net/bmahe/genetics4j/core/spec/combination/MultiPointArithmetic::alpha → KILLED
|
final double alpha = multiPointArithmeticPolicy.alpha(); |
43
|
|
|
44
|
3
1. combine : Substituted 0 with 1 → SURVIVED
2. combine : removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getNumAlleles → SURVIVED
3. combine : removed call to java/util/random/RandomGenerator::ints → KILLED
|
final int[] alleleSplits = randomGenerator.ints(0, chromosome1.getNumAlleles()) |
45
|
2
1. combine : replaced call to java/util/stream/IntStream::distinct with receiver → SURVIVED
2. combine : removed call to java/util/stream/IntStream::distinct → KILLED
|
.distinct() |
46
|
2
1. combine : replaced call to java/util/stream/IntStream::limit with receiver → SURVIVED
2. combine : removed call to java/util/stream/IntStream::limit → KILLED
|
.limit(numCrossovers) |
47
|
2
1. combine : replaced call to java/util/stream/IntStream::sorted with receiver → SURVIVED
2. combine : removed call to java/util/stream/IntStream::sorted → KILLED
|
.sorted() |
48
|
1
1. combine : removed call to java/util/stream/IntStream::toArray → KILLED
|
.toArray(); |
49
|
|
|
50
|
|
final IntChromosome intChromosome1 = (IntChromosome) chromosome1; |
51
|
|
final IntChromosome intChromosome2 = (IntChromosome) chromosome2; |
52
|
|
|
53
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getNumAlleles → KILLED
|
final int numAlleles = chromosome1.getNumAlleles(); |
54
|
|
final int[] firstChildValues = new int[numAlleles]; |
55
|
|
final int[] secondChildValues = new int[numAlleles]; |
56
|
|
|
57
|
1
1. combine : Substituted 1 with 0 → KILLED
|
boolean useChromosome1 = true; |
58
|
1
1. combine : Substituted 0 with 1 → KILLED
|
int splitIndex = 0; |
59
|
6
1. combine : removed conditional - replaced comparison check with false → KILLED
2. combine : changed conditional boundary → KILLED
3. combine : negated conditional → KILLED
4. combine : Substituted 0 with 1 → KILLED
5. combine : removed conditional - replaced comparison check with true → KILLED
6. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getNumAlleles → KILLED
|
for (int i = 0; i < intChromosome1.getNumAlleles(); i++) { |
60
|
|
|
61
|
7
1. combine : removed conditional - replaced comparison check with true → SURVIVED
2. combine : changed conditional boundary → SURVIVED
3. combine : negated conditional → KILLED
4. combine : negated conditional → KILLED
5. combine : removed conditional - replaced equality check with true → KILLED
6. combine : removed conditional - replaced comparison check with false → KILLED
7. combine : removed conditional - replaced equality check with false → KILLED
|
if (splitIndex < alleleSplits.length && i == alleleSplits[splitIndex]) { |
62
|
2
1. combine : Changed increment from 1 to -1 → KILLED
2. combine : Removed increment 1 → KILLED
|
splitIndex++; |
63
|
5
1. combine : Substituted 1 with 0 → KILLED
2. combine : Substituted 0 with 1 → KILLED
3. combine : removed conditional - replaced equality check with false → KILLED
4. combine : negated conditional → KILLED
5. combine : removed conditional - replaced equality check with true → KILLED
|
useChromosome1 = !useChromosome1; |
64
|
|
} |
65
|
|
|
66
|
2
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele → KILLED
2. combine : replaced call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele with argument → KILLED
|
final int firstAllele = intChromosome1.getAllele(i); |
67
|
2
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele → KILLED
2. combine : replaced call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele with argument → KILLED
|
final int secondAllele = intChromosome2.getAllele(i); |
68
|
|
|
69
|
3
1. combine : removed conditional - replaced equality check with false → KILLED
2. combine : removed conditional - replaced equality check with true → KILLED
3. combine : negated conditional → KILLED
|
if (useChromosome1) { |
70
|
5
1. combine : Substituted 1.0 with 2.0 → KILLED
2. combine : Replaced double multiplication with division → KILLED
3. combine : Replaced double multiplication with division → KILLED
4. combine : Replaced double subtraction with addition → KILLED
5. combine : Replaced double addition with subtraction → KILLED
|
firstChildValues[i] = (int) (alpha * firstAllele + (1 - alpha) * secondAllele); |
71
|
5
1. combine : Replaced double addition with subtraction → KILLED
2. combine : Replaced double subtraction with addition → KILLED
3. combine : Substituted 1.0 with 2.0 → KILLED
4. combine : Replaced double multiplication with division → KILLED
5. combine : Replaced double multiplication with division → KILLED
|
secondChildValues[i] = (int) ((1 - alpha) * firstAllele + alpha * secondAllele); |
72
|
|
} else { |
73
|
5
1. combine : Replaced double multiplication with division → KILLED
2. combine : Replaced double multiplication with division → KILLED
3. combine : Replaced double addition with subtraction → KILLED
4. combine : Replaced double subtraction with addition → KILLED
5. combine : Substituted 1.0 with 2.0 → KILLED
|
firstChildValues[i] = (int) ((1 - alpha) * firstAllele + alpha * secondAllele); |
74
|
5
1. combine : Replaced double multiplication with division → KILLED
2. combine : Replaced double multiplication with division → KILLED
3. combine : Replaced double addition with subtraction → KILLED
4. combine : Replaced double subtraction with addition → KILLED
5. combine : Substituted 1.0 with 2.0 → KILLED
|
secondChildValues[i] = (int) (alpha * firstAllele + (1 - alpha) * secondAllele); |
75
|
|
} |
76
|
|
} |
77
|
|
|
78
|
2
1. combine : replaced return value with Collections.emptyList for net/bmahe/genetics4j/core/combination/multipointarithmetic/IntChromosomeMultiPointArithmetic::combine → KILLED
2. combine : removed call to java/util/List::of → KILLED
|
return List.of( |
79
|
3
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMaxValue → SURVIVED
2. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMinValue → SURVIVED
3. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::<init> → KILLED
|
new IntChromosome(numAlleles, intChromosome1.getMinValue(), intChromosome2.getMaxValue(), firstChildValues), |
80
|
|
new IntChromosome(numAlleles, |
81
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMinValue → SURVIVED
|
intChromosome1.getMinValue(), |
82
|
2
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMaxValue → SURVIVED
2. combine : removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::<init> → KILLED
|
intChromosome2.getMaxValue(), |
83
|
|
secondChildValues)); |
84
|
|
} |
85
|
|
} |
| | Mutations |
25 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Removed assignment to member variable randomGenerator → KILLED
|
26 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Removed assignment to member variable multiPointArithmeticPolicy → KILLED
|
41 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/spec/combination/MultiPointArithmetic::numCrossovers → KILLED
|
42 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/spec/combination/MultiPointArithmetic::alpha → KILLED
|
44 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/random/RandomGenerator::ints → KILLED
2.2 Location : combine Killed by : none Substituted 0 with 1 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
3.3 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getNumAlleles → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|
45 |
|
1.1 Location : combine Killed by : none replaced call to java/util/stream/IntStream::distinct with receiver → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::distinct → KILLED
|
46 |
|
1.1 Location : combine Killed by : none replaced call to java/util/stream/IntStream::limit with receiver → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::limit → KILLED
|
47 |
|
1.1 Location : combine Killed by : none replaced call to java/util/stream/IntStream::sorted with receiver → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::sorted → KILLED
|
48 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::toArray → KILLED
|
53 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getNumAlleles → KILLED
|
57 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1 with 0 → KILLED
|
58 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 0 with 1 → KILLED
|
59 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced comparison check with false → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] changed conditional boundary → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 0 with 1 → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced comparison check with true → KILLED
6.6 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getNumAlleles → KILLED
|
61 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with true → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced comparison check with false → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with false → KILLED
6.6 Location : combine Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
7.7 Location : combine Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|
62 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Changed increment from 1 to -1 → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Removed increment 1 → KILLED
|
63 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1 with 0 → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 0 with 1 → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with false → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with true → KILLED
|
66 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] replaced call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele with argument → KILLED
|
67 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] replaced call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getAllele with argument → KILLED
|
69 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with false → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with true → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
|
70 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
|
71 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
|
73 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
|
74 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
|
78 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] replaced return value with Collections.emptyList for net/bmahe/genetics4j/core/combination/multipointarithmetic/IntChromosomeMultiPointArithmetic::combine → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/List::of → KILLED
|
79 |
|
1.1 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMaxValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMinValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::<init> → KILLED
|
81 |
|
1.1 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMinValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|
82 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::<init> → KILLED
2.2 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/IntChromosome::getMaxValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.IntChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|