ParetoUtils.java

1
package net.bmahe.genetics4j.moo;
2
3
import java.util.ArrayList;
4
import java.util.Comparator;
5
import java.util.HashMap;
6
import java.util.HashSet;
7
import java.util.List;
8
import java.util.Map;
9
import java.util.Objects;
10
import java.util.Set;
11
12
import org.apache.commons.lang3.Validate;
13
14
public class ParetoUtils {
15
16
	private ParetoUtils() {
17
18
	}
19
20
	public static <T> List<Set<Integer>> rankedPopulation(final Comparator<T> dominance, final List<T> fitnessScore) {
21
		Objects.requireNonNull(dominance);
22
		Objects.requireNonNull(fitnessScore);
23
		Validate.isTrue(fitnessScore.isEmpty() == false, "Fitness score list must not be empty");
24
25 1 1. rankedPopulation : removed call to java/util/HashMap::<init> → KILLED
		final Map<Integer, Set<Integer>> dominating = new HashMap<>();
26 1 1. rankedPopulation : removed call to java/util/HashMap::<init> → KILLED
		final Map<Integer, Integer> dominatedCount = new HashMap<>();
27
28 1 1. rankedPopulation : removed call to java/util/ArrayList::<init> → KILLED
		final List<Set<Integer>> rankedPopulation = new ArrayList<>();
29 2 1. rankedPopulation : removed call to java/util/List::add → KILLED
2. rankedPopulation : removed call to java/util/HashSet::<init> → KILLED
		rankedPopulation.add(new HashSet<>());
30 1 1. rankedPopulation : removed call to java/util/List::getFirst → KILLED
		final Set<Integer> firstFront = rankedPopulation.getFirst();
31
32 6 1. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
2. rankedPopulation : removed call to java/util/List::size → KILLED
3. rankedPopulation : changed conditional boundary → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
5. rankedPopulation : negated conditional → KILLED
6. rankedPopulation : Substituted 0 with 1 → KILLED
		for (int i = 0; i < fitnessScore.size(); i++) {
33
34 1 1. rankedPopulation : removed call to java/util/List::get → KILLED
			final T individualFitness = fitnessScore.get(i);
35 1 1. rankedPopulation : Substituted 0 with 1 → KILLED
			int dominated = 0;
36
37 6 1. rankedPopulation : removed call to java/util/List::size → KILLED
2. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
3. rankedPopulation : negated conditional → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
5. rankedPopulation : Substituted 0 with 1 → KILLED
6. rankedPopulation : changed conditional boundary → KILLED
			for (int otherIndex = 0; otherIndex < fitnessScore.size(); otherIndex++) {
38 3 1. rankedPopulation : removed conditional - replaced equality check with true → SURVIVED
2. rankedPopulation : removed conditional - replaced equality check with false → KILLED
3. rankedPopulation : negated conditional → KILLED
				if (otherIndex != i) {
39 1 1. rankedPopulation : removed call to java/util/List::get → KILLED
					final T otherFitness = fitnessScore.get(otherIndex);
40
41 1 1. rankedPopulation : removed call to java/util/Comparator::compare → KILLED
					final int comparison = dominance.compare(individualFitness, otherFitness);
42 4 1. rankedPopulation : changed conditional boundary → SURVIVED
2. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
3. rankedPopulation : negated conditional → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
					if (comparison > 0) {
43 5 1. lambda$rankedPopulation$0 : replaced return value with Collections.emptySet for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$0 → KILLED
2. rankedPopulation : removed call to java/util/Map::computeIfAbsent → KILLED
3. rankedPopulation : replaced call to java/util/Map::computeIfAbsent with argument → KILLED
4. lambda$rankedPopulation$0 : removed call to java/util/HashSet::<init> → KILLED
5. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
						dominating.computeIfAbsent(i, k -> new HashSet<>());
44 5 1. rankedPopulation : removed call to java/util/Map::get → KILLED
2. rankedPopulation : removed call to java/util/Set::add → KILLED
3. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
4. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
5. rankedPopulation : replaced call to java/util/Map::get with argument → KILLED
						dominating.get(i).add(otherIndex);
45 4 1. rankedPopulation : changed conditional boundary → KILLED
2. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
3. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
4. rankedPopulation : negated conditional → KILLED
					} else if (comparison < 0) {
46 2 1. rankedPopulation : Changed increment from 1 to -1 → KILLED
2. rankedPopulation : Removed increment 1 → KILLED
						dominated++;
47
					}
48
				}
49
			}
50 4 1. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
2. rankedPopulation : replaced call to java/util/Map::put with argument → KILLED
3. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
4. rankedPopulation : removed call to java/util/Map::put → KILLED
			dominatedCount.put(i, dominated);
51
52
			// it dominates everything -> it is part of the first front
53 3 1. rankedPopulation : removed conditional - replaced equality check with true → KILLED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced equality check with false → KILLED
			if (dominated == 0) {
54 2 1. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
2. rankedPopulation : removed call to java/util/Set::add → KILLED
				firstFront.add(i);
55
			}
56
		}
57
58 1 1. rankedPopulation : Substituted 0 with 1 → KILLED
		int frontIndex = 0;
59 10 1. rankedPopulation : changed conditional boundary → SURVIVED
2. rankedPopulation : removed conditional - replaced comparison check with true → SURVIVED
3. rankedPopulation : removed call to java/util/Set::isEmpty → TIMED_OUT
4. rankedPopulation : removed conditional - replaced equality check with true → TIMED_OUT
5. rankedPopulation : negated conditional → KILLED
6. rankedPopulation : removed call to java/util/List::size → KILLED
7. rankedPopulation : removed conditional - replaced equality check with false → KILLED
8. rankedPopulation : removed call to java/util/List::get → KILLED
9. rankedPopulation : negated conditional → KILLED
10. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
		while (frontIndex < rankedPopulation.size() && rankedPopulation.get(frontIndex).isEmpty() == false) {
60 1 1. rankedPopulation : removed call to java/util/List::get → KILLED
			final Set<Integer> currentFront = rankedPopulation.get(frontIndex);
61
62 1 1. rankedPopulation : removed call to java/util/HashSet::<init> → KILLED
			final Set<Integer> nextFront = new HashSet<>();
63
64 1 1. rankedPopulation : removed call to java/lang/Integer::intValue → KILLED
			for (final int i : currentFront) {
65 5 1. rankedPopulation : removed conditional - replaced equality check with true → KILLED
2. rankedPopulation : removed conditional - replaced equality check with false → KILLED
3. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
4. rankedPopulation : removed call to java/util/Map::containsKey → KILLED
5. rankedPopulation : negated conditional → KILLED
				if (dominating.containsKey(i)) {
66 3 1. rankedPopulation : removed call to java/util/Map::get → KILLED
2. rankedPopulation : replaced call to java/util/Map::get with argument → KILLED
3. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
					for (final Integer dominatedByI : dominating.get(i)) {
67 7 1. lambda$rankedPopulation$1 : replaced Integer return value with 0 for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$1 → KILLED
2. rankedPopulation : replaced call to java/util/Map::computeIfPresent with argument → KILLED
3. lambda$rankedPopulation$1 : Replaced integer subtraction with addition → KILLED
4. lambda$rankedPopulation$1 : Substituted 1 with 0 → KILLED
5. rankedPopulation : removed call to java/util/Map::computeIfPresent → KILLED
6. lambda$rankedPopulation$1 : removed call to java/lang/Integer::intValue → KILLED
7. lambda$rankedPopulation$1 : removed call to java/lang/Integer::valueOf → KILLED
						final Integer updatedDominatedCount = dominatedCount.computeIfPresent(dominatedByI, (k, v) -> v - 1);
68
69 7 1. rankedPopulation : removed conditional - replaced equality check with true → SURVIVED
2. rankedPopulation : removed conditional - replaced equality check with true → KILLED
3. rankedPopulation : removed conditional - replaced equality check with false → KILLED
4. rankedPopulation : negated conditional → KILLED
5. rankedPopulation : removed call to java/lang/Integer::intValue → KILLED
6. rankedPopulation : negated conditional → KILLED
7. rankedPopulation : removed conditional - replaced equality check with false → KILLED
						if (updatedDominatedCount != null && updatedDominatedCount == 0) {
70 1 1. rankedPopulation : removed call to java/util/Set::add → KILLED
							nextFront.add(dominatedByI);
71
						}
72
					}
73
74
				}
75
			}
76
77 1 1. rankedPopulation : removed call to java/util/List::add → KILLED
			rankedPopulation.add(nextFront);
78 1 1. rankedPopulation : Changed increment from 1 to -1 → KILLED
			frontIndex++;
79
		}
80
81 1 1. rankedPopulation : replaced return value with Collections.emptyList for net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED
		return rankedPopulation;
82
	}
83
}

Mutations

25

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/HashMap::<init> → KILLED

26

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/HashMap::<init> → KILLED

28

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/ArrayList::<init> → KILLED

29

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::add → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/HashSet::<init> → KILLED

30

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::getFirst → KILLED

32

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with false → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::size → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
changed conditional boundary → KILLED

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with true → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

6.6
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Substituted 0 with 1 → KILLED

34

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::get → KILLED

35

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Substituted 0 with 1 → KILLED

37

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::size → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with true → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with false → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Substituted 0 with 1 → KILLED

6.6
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
changed conditional boundary → KILLED

38

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with false → KILLED

2.2
Location : rankedPopulation
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

39

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::get → KILLED

41

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Comparator::compare → KILLED

42

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with false → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with true → KILLED

4.4
Location : rankedPopulation
Killed by : none
changed conditional boundary → SURVIVED
Covering tests

43

1.1
Location : lambda$rankedPopulation$0
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced return value with Collections.emptySet for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$0 → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Map::computeIfAbsent → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced call to java/util/Map::computeIfAbsent with argument → KILLED

4.4
Location : lambda$rankedPopulation$0
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/HashSet::<init> → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

44

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Map::get → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Set::add → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced call to java/util/Map::get with argument → KILLED

45

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
changed conditional boundary → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with false → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
removed conditional - replaced comparison check with true → KILLED

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

46

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Changed increment from 1 to -1 → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Removed increment 1 → KILLED

50

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced call to java/util/Map::put with argument → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Map::put → KILLED

53

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with true → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with false → KILLED

54

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Set::add → KILLED

58

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Substituted 0 with 1 → KILLED

59

1.1
Location : rankedPopulation
Killed by : none
removed call to java/util/Set::isEmpty → TIMED_OUT

2.2
Location : rankedPopulation
Killed by : none
changed conditional boundary → SURVIVED
Covering tests

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

4.4
Location : rankedPopulation
Killed by : none
removed conditional - replaced equality check with true → TIMED_OUT

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::size → KILLED

6.6
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with false → KILLED

7.7
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::get → KILLED

8.8
Location : rankedPopulation
Killed by : none
removed conditional - replaced comparison check with true → SURVIVED Covering tests

9.9
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

10.10
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced comparison check with false → KILLED

60

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::get → KILLED

62

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/HashSet::<init> → KILLED

64

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::intValue → KILLED

65

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with true → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with false → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Map::containsKey → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

66

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Map::get → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced call to java/util/Map::get with argument → KILLED

3.3
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

67

1.1
Location : lambda$rankedPopulation$1
Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
replaced Integer return value with 0 for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$1 → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced call to java/util/Map::computeIfPresent with argument → KILLED

3.3
Location : lambda$rankedPopulation$1
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Replaced integer subtraction with addition → KILLED

4.4
Location : lambda$rankedPopulation$1
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Substituted 1 with 0 → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Map::computeIfPresent → KILLED

6.6
Location : lambda$rankedPopulation$1
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::intValue → KILLED

7.7
Location : lambda$rankedPopulation$1
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/lang/Integer::valueOf → KILLED

69

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
removed conditional - replaced equality check with true → KILLED

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with false → KILLED

3.3
Location : rankedPopulation
Killed by : none
removed conditional - replaced equality check with true → SURVIVED
Covering tests

4.4
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

5.5
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.nsga2.impl.NSGA2SelectorTest]/[method:simple()]
removed call to java/lang/Integer::intValue → KILLED

6.6
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → KILLED

7.7
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed conditional - replaced equality check with false → KILLED

70

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/Set::add → KILLED

77

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
removed call to java/util/List::add → KILLED

78

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
Changed increment from 1 to -1 → KILLED

81

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
replaced return value with Collections.emptyList for net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED

Active mutators

Tests examined


Report generated by PIT 1.25.7 support