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.DoubleChromosome; |
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 DoubleChromosomeMultiPointArithmetic<T extends Comparable<T>> implements ChromosomeCombinator<T> { |
15
|
|
|
16
|
|
private final RandomGenerator randomGenerator; |
17
|
|
|
18
|
|
private final MultiPointArithmetic multiPointArithmeticPolicy; |
19
|
|
|
20
|
|
public DoubleChromosomeMultiPointArithmetic(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(DoubleChromosome.class, chromosome1); |
35
|
|
Validate.isInstanceOf(DoubleChromosome.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 : removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getNumAlleles → SURVIVED
2. combine : Substituted 0 with 1 → 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 DoubleChromosome doubleChromosome1 = (DoubleChromosome) chromosome1; |
51
|
|
final DoubleChromosome doubleChromosome2 = (DoubleChromosome) chromosome2; |
52
|
|
|
53
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/Chromosome::getNumAlleles → KILLED
|
final int numAlleles = chromosome1.getNumAlleles(); |
54
|
|
final double[] firstChildValues = new double[numAlleles]; |
55
|
|
final double[] secondChildValues = new double[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 : changed conditional boundary → KILLED
2. combine : removed conditional - replaced comparison check with false → KILLED
3. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getNumAlleles → KILLED
4. combine : negated conditional → KILLED
5. combine : removed conditional - replaced comparison check with true → KILLED
6. combine : Substituted 0 with 1 → KILLED
|
for (int i = 0; i < doubleChromosome1.getNumAlleles(); i++) { |
60
|
|
|
61
|
7
1. combine : removed conditional - replaced comparison check with true → SURVIVED
2. combine : changed conditional boundary → SURVIVED
3. combine : removed conditional - replaced equality check with true → KILLED
4. combine : negated conditional → KILLED
5. combine : negated conditional → 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 : Removed increment 1 → KILLED
2. combine : Changed increment from 1 to -1 → KILLED
|
splitIndex++; |
63
|
5
1. combine : negated conditional → KILLED
2. combine : Substituted 0 with 1 → KILLED
3. combine : Substituted 1 with 0 → KILLED
4. combine : removed conditional - replaced equality check with true → KILLED
5. combine : removed conditional - replaced equality check with false → KILLED
|
useChromosome1 = !useChromosome1; |
64
|
|
} |
65
|
|
|
66
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → KILLED
|
final double firstAllele = doubleChromosome1.getAllele(i); |
67
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → KILLED
|
final double secondAllele = doubleChromosome2.getAllele(i); |
68
|
|
|
69
|
3
1. combine : negated conditional → KILLED
2. combine : removed conditional - replaced equality check with true → KILLED
3. combine : removed conditional - replaced equality check with false → 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 addition with subtraction → KILLED
5. combine : Replaced double subtraction with addition → KILLED
|
firstChildValues[i] = alpha * firstAllele + (1 - alpha) * secondAllele; |
71
|
5
1. combine : Replaced double addition with subtraction → KILLED
2. combine : Replaced double multiplication with division → KILLED
3. combine : Replaced double subtraction with addition → KILLED
4. combine : Substituted 1.0 with 2.0 → KILLED
5. combine : Replaced double multiplication with division → KILLED
|
secondChildValues[i] = (1 - alpha) * firstAllele + alpha * secondAllele; |
72
|
|
} else { |
73
|
5
1. combine : Replaced double subtraction with addition → KILLED
2. combine : Substituted 1.0 with 2.0 → KILLED
3. combine : Replaced double multiplication with division → KILLED
4. combine : Replaced double addition with subtraction → KILLED
5. combine : Replaced double multiplication with division → KILLED
|
firstChildValues[i] = (1 - alpha) * firstAllele + alpha * secondAllele; |
74
|
5
1. combine : Replaced double multiplication with division → KILLED
2. combine : Replaced double addition with subtraction → KILLED
3. combine : Replaced double subtraction with addition → KILLED
4. combine : Substituted 1.0 with 2.0 → KILLED
5. combine : Replaced double multiplication with division → KILLED
|
secondChildValues[i] = alpha * firstAllele + (1 - alpha) * secondAllele; |
75
|
|
} |
76
|
|
} |
77
|
|
|
78
|
|
/** |
79
|
|
* TODO Should the min/max values be extended based on the lowest/highest |
80
|
|
* values? |
81
|
|
*/ |
82
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getMinValue → SURVIVED
|
final double minValue = doubleChromosome1.getMinValue(); |
83
|
1
1. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getMaxValue → SURVIVED
|
final double maxValue = doubleChromosome2.getMaxValue(); |
84
|
|
|
85
|
4
1. combine : replaced return value with Collections.emptyList for net/bmahe/genetics4j/core/combination/multipointarithmetic/DoubleChromosomeMultiPointArithmetic::combine → KILLED
2. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::<init> → KILLED
3. combine : removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::<init> → KILLED
4. combine : removed call to java/util/List::of → KILLED
|
return List.of(new DoubleChromosome(numAlleles, minValue, maxValue, firstChildValues), |
86
|
|
new DoubleChromosome(numAlleles, minValue, maxValue, secondChildValues)); |
87
|
|
} |
88
|
|
} |
| | Mutations |
25 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Removed assignment to member variable randomGenerator → KILLED
|
26 |
|
1.1 Location : <init> Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Removed assignment to member variable multiPointArithmeticPolicy → KILLED
|
41 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/random/RandomGenerator::ints → KILLED
2.2 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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
3.3 Location : combine Killed by : none Substituted 0 with 1 → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::distinct → KILLED
|
46 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::limit → KILLED
2.2 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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|
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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::sorted → KILLED
|
48 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/stream/IntStream::toArray → KILLED
|
53 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[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.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1 with 0 → KILLED
|
58 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 0 with 1 → KILLED
|
59 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] changed conditional boundary → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced comparison check with false → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getNumAlleles → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced comparison check with true → KILLED
6.6 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 0 with 1 → KILLED
|
61 |
|
1.1 Location : combine Killed by : none removed conditional - replaced comparison check with true → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with true → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
5.5 Location : combine Killed by : none changed conditional boundary → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
6.6 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced comparison check with false → KILLED
7.7 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with false → KILLED
|
62 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Removed increment 1 → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Changed increment from 1 to -1 → KILLED
|
63 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 0 with 1 → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1 with 0 → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with true → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with false → KILLED
|
66 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → KILLED
|
67 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getAllele → KILLED
|
69 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] negated conditional → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with true → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed conditional - replaced equality check with false → KILLED
|
70 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
|
71 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
|
73 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
|
74 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double addition with subtraction → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double subtraction with addition → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Substituted 1.0 with 2.0 → KILLED
5.5 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] Replaced double multiplication with division → KILLED
|
82 |
|
1.1 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getMinValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|
83 |
|
1.1 Location : combine Killed by : none removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::getMaxValue → SURVIVED
Covering tests
Covered by tests:
- net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()]
|
85 |
|
1.1 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] replaced return value with Collections.emptyList for net/bmahe/genetics4j/core/combination/multipointarithmetic/DoubleChromosomeMultiPointArithmetic::combine → KILLED
2.2 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::<init> → KILLED
3.3 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to net/bmahe/genetics4j/core/chromosomes/DoubleChromosome::<init> → KILLED
4.4 Location : combine Killed by : net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.combination.multipointarithmetic.DoubleChromosomeMultiPointArithmeticTest]/[method:combineTest()] removed call to java/util/List::of → KILLED
|