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.Set;
10
11
import org.apache.commons.lang3.Validate;
12
13
public class ParetoUtils {
14
15
	private ParetoUtils() {
16
17
	}
18
19
	public static <T> List<Set<Integer>> rankedPopulation(final Comparator<T> dominance, final List<T> fitnessScore) {
20
		Validate.notNull(dominance);
21
		Validate.notNull(fitnessScore);
22
		Validate.isTrue(fitnessScore.isEmpty() == false);
23
24 1 1. rankedPopulation : removed call to java/util/HashMap::<init> → KILLED
		final Map<Integer, Set<Integer>> dominating = new HashMap<>();
25 1 1. rankedPopulation : removed call to java/util/HashMap::<init> → KILLED
		final Map<Integer, Integer> dominatedCount = new HashMap<>();
26
27 1 1. rankedPopulation : removed call to java/util/ArrayList::<init> → KILLED
		final List<Set<Integer>> rankedPopulation = new ArrayList<>();
28 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<>());
29 2 1. rankedPopulation : removed call to java/util/List::get → KILLED
2. rankedPopulation : Substituted 0 with 1 → KILLED
		final Set<Integer> firstFront = rankedPopulation.get(0);
30
31 6 1. rankedPopulation : changed conditional boundary → KILLED
2. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
3. rankedPopulation : negated conditional → KILLED
4. rankedPopulation : Substituted 0 with 1 → KILLED
5. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
6. rankedPopulation : removed call to java/util/List::size → KILLED
		for (int i = 0; i < fitnessScore.size(); i++) {
32
33 1 1. rankedPopulation : removed call to java/util/List::get → KILLED
			final T individualFitness = fitnessScore.get(i);
34 1 1. rankedPopulation : Substituted 0 with 1 → KILLED
			int dominated = 0;
35
36 6 1. rankedPopulation : Substituted 0 with 1 → KILLED
2. rankedPopulation : changed conditional boundary → KILLED
3. rankedPopulation : removed call to java/util/List::size → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
5. rankedPopulation : negated conditional → KILLED
6. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
			for (int otherIndex = 0; otherIndex < fitnessScore.size(); otherIndex++) {
37 3 1. rankedPopulation : removed conditional - replaced equality check with true → SURVIVED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced equality check with false → KILLED
				if (otherIndex != i) {
38 1 1. rankedPopulation : removed call to java/util/List::get → KILLED
					final T otherFitness = fitnessScore.get(otherIndex);
39
40 1 1. rankedPopulation : removed call to java/util/Comparator::compare → KILLED
					final int comparison = dominance.compare(individualFitness, otherFitness);
41 4 1. rankedPopulation : changed conditional boundary → SURVIVED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced comparison check with true → KILLED
4. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
					if (comparison > 0) {
42 5 1. lambda$rankedPopulation$0 : replaced return value with Collections.emptySet for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$0 → KILLED
2. lambda$rankedPopulation$0 : removed call to java/util/HashSet::<init> → KILLED
3. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
4. rankedPopulation : removed call to java/util/Map::computeIfAbsent → KILLED
5. rankedPopulation : replaced call to java/util/Map::computeIfAbsent with argument → KILLED
						dominating.computeIfAbsent(i, (k) -> new HashSet<>());
43 3 1. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
2. rankedPopulation : replaced call to java/util/Map::get with argument → KILLED
3. rankedPopulation : removed call to java/util/Map::get → KILLED
						dominating.get(i)
44 2 1. rankedPopulation : removed call to java/util/Set::add → KILLED
2. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
								.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 6 1. rankedPopulation : changed conditional boundary → SURVIVED
2. rankedPopulation : removed conditional - replaced comparison check with true → SURVIVED
3. rankedPopulation : removed call to java/util/List::size → KILLED
4. rankedPopulation : removed call to java/util/List::get → KILLED
5. rankedPopulation : negated conditional → KILLED
6. rankedPopulation : removed conditional - replaced comparison check with false → KILLED
		while (frontIndex < rankedPopulation.size() && rankedPopulation.get(frontIndex)
60 4 1. rankedPopulation : removed conditional - replaced equality check with true → TIMED_OUT
2. rankedPopulation : removed call to java/util/Set::isEmpty → TIMED_OUT
3. rankedPopulation : removed conditional - replaced equality check with false → KILLED
4. rankedPopulation : negated conditional → KILLED
				.isEmpty() == false) {
61 1 1. rankedPopulation : removed call to java/util/List::get → KILLED
			final Set<Integer> currentFront = rankedPopulation.get(frontIndex);
62
63 1 1. rankedPopulation : removed call to java/util/HashSet::<init> → KILLED
			final Set<Integer> nextFront = new HashSet<>();
64
65 1 1. rankedPopulation : removed call to java/lang/Integer::intValue → KILLED
			for (final int i : currentFront) {
66 5 1. rankedPopulation : removed call to java/util/Map::containsKey → KILLED
2. rankedPopulation : negated conditional → KILLED
3. rankedPopulation : removed conditional - replaced equality check with true → KILLED
4. rankedPopulation : removed conditional - replaced equality check with false → KILLED
5. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
				if (dominating.containsKey(i)) {
67 3 1. rankedPopulation : replaced call to java/util/Map::get with argument → KILLED
2. rankedPopulation : removed call to java/lang/Integer::valueOf → KILLED
3. rankedPopulation : removed call to java/util/Map::get → KILLED
					for (final Integer dominatedByI : dominating.get(i)) {
68 7 1. lambda$rankedPopulation$1 : replaced Integer return value with 0 for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$1 → SURVIVED
2. rankedPopulation : removed call to java/util/Map::computeIfPresent → KILLED
3. lambda$rankedPopulation$1 : Replaced integer subtraction with addition → KILLED
4. lambda$rankedPopulation$1 : Substituted 1 with 0 → KILLED
5. lambda$rankedPopulation$1 : removed call to java/lang/Integer::intValue → KILLED
6. rankedPopulation : replaced call to java/util/Map::computeIfPresent with argument → KILLED
7. lambda$rankedPopulation$1 : removed call to java/lang/Integer::valueOf → KILLED
						final Integer updatedDominatedCount = dominatedCount.computeIfPresent(dominatedByI, (k, v) -> v - 1);
69
70 7 1. rankedPopulation : removed conditional - replaced equality check with true → SURVIVED
2. rankedPopulation : removed call to java/lang/Integer::intValue → KILLED
3. rankedPopulation : negated conditional → KILLED
4. rankedPopulation : removed conditional - replaced equality check with false → KILLED
5. rankedPopulation : removed conditional - replaced equality check with true → KILLED
6. rankedPopulation : removed conditional - replaced equality check with false → KILLED
7. rankedPopulation : negated conditional → KILLED
						if (updatedDominatedCount != null && updatedDominatedCount == 0) {
71 1 1. rankedPopulation : removed call to java/util/Set::add → KILLED
							nextFront.add(dominatedByI);
72
						}
73
					}
74
75
				}
76
			}
77
78 1 1. rankedPopulation : removed call to java/util/List::add → KILLED
			rankedPopulation.add(nextFront);
79 1 1. rankedPopulation : Changed increment from 1 to -1 → KILLED
			frontIndex++;
80
		}
81
82 1 1. rankedPopulation : replaced return value with Collections.emptyList for net/bmahe/genetics4j/moo/ParetoUtils::rankedPopulation → KILLED
		return rankedPopulation;
83
	}
84
}

Mutations

24

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

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

27

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

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/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

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

2.2
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

31

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

5.5
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

6.6
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

33

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

34

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

36

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

2.2
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
changed conditional boundary → 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/util/List::size → 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()]
removed conditional - replaced comparison check with false → KILLED

37

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

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

38

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

40

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

41

1.1
Location : rankedPopulation
Killed by : net.bmahe.genetics4j.moo.ParetoUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.moo.ParetoUtilsTest]/[method:simple2()]
negated conditional → 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 : none
changed conditional boundary → 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()]
removed conditional - replaced comparison check with false → KILLED

42

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 : 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

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::computeIfAbsent → 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::computeIfAbsent with argument → KILLED

43

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::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/util/Map::get → 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/Set::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/lang/Integer::valueOf → 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
changed conditional boundary → SURVIVED
Covering tests

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()]
removed call to java/util/List::get → KILLED

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

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()]
removed conditional - replaced comparison check with false → KILLED

60

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

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 call to java/util/Set::isEmpty → TIMED_OUT

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

61

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

63

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

65

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

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::containsKey → 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 true → 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 equality 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()]
removed call to java/lang/Integer::valueOf → KILLED

67

1.1
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

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/lang/Integer::valueOf → 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/util/Map::get → KILLED

68

1.1
Location : lambda$rankedPopulation$1
Killed by : none
replaced Integer return value with 0 for net/bmahe/genetics4j/moo/ParetoUtils::lambda$rankedPopulation$1 → SURVIVED
Covering tests

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::computeIfPresent → 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 : 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

6.6
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

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

70

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 call to java/lang/Integer::intValue → 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

4.4
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

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

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()]
negated conditional → KILLED

71

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

78

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

79

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

82

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.19.6