OperationFactories.java

1
package net.bmahe.genetics4j.gp;
2
3
import java.util.Arrays;
4
import java.util.Objects;
5
import java.util.function.BiFunction;
6
import java.util.function.Function;
7
import java.util.function.Supplier;
8
9
import org.apache.commons.lang3.Validate;
10
11
import net.bmahe.genetics4j.gp.math.ImmutableCoefficientOperation;
12
import net.bmahe.genetics4j.gp.math.ImmutableCoefficientOperation.Builder;
13
14
public final class OperationFactories {
15
16
	private OperationFactories() {
17
	}
18
19
	@SuppressWarnings("rawtypes")
20
	public static OperationFactory ofOperationSupplier(final Class[] acceptedTypes, final Class returnedType,
21
			final Supplier<Operation> buildSupplier) {
22
		Objects.requireNonNull(acceptedTypes);
23
		Objects.requireNonNull(returnedType);
24
		Objects.requireNonNull(buildSupplier);
25
26 5 1. <init> : Removed assignment to member variable val$returnedType → KILLED
2. <init> : Removed assignment to member variable val$acceptedTypes → KILLED
3. ofOperationSupplier : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofOperationSupplier → KILLED
4. <init> : Removed assignment to member variable val$buildSupplier → KILLED
5. ofOperationSupplier : removed call to net/bmahe/genetics4j/gp/OperationFactories$1::<init> → KILLED
		return new OperationFactory() {
27
28
			@Override
29
			public Class returnedType() {
30 1 1. returnedType : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$1::returnedType → KILLED
				return returnedType;
31
			}
32
33
			@Override
34
			public Class[] acceptedTypes() {
35 1 1. acceptedTypes : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$1::acceptedTypes → KILLED
				return acceptedTypes;
36
			}
37
38
			@Override
39
			public Operation build(final InputSpec inputSpec) {
40 2 1. build : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$1::build → KILLED
2. build : removed call to java/util/function/Supplier::get → KILLED
				return buildSupplier.get();
41
			}
42
		};
43
	}
44
45
	@SuppressWarnings("rawtypes")
46
	public static OperationFactory of(final Class[] acceptedTypes, final Class returnedType,
47
			final Function<InputSpec, Operation> operationBuilder) {
48
		Objects.requireNonNull(acceptedTypes);
49
		Objects.requireNonNull(returnedType);
50
		Objects.requireNonNull(operationBuilder);
51
52 5 1. <init> : Removed assignment to member variable val$returnedType → KILLED
2. <init> : Removed assignment to member variable val$acceptedTypes → KILLED
3. of : removed call to net/bmahe/genetics4j/gp/OperationFactories$2::<init> → KILLED
4. of : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::of → KILLED
5. <init> : Removed assignment to member variable val$operationBuilder → KILLED
		return new OperationFactory() {
53
			@Override
54
			public Class[] acceptedTypes() {
55 1 1. acceptedTypes : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$2::acceptedTypes → KILLED
				return acceptedTypes;
56
			}
57
58
			@Override
59
			public Class returnedType() {
60 1 1. returnedType : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$2::returnedType → KILLED
				return returnedType;
61
			}
62
63
			@Override
64
			public Operation build(final InputSpec inputSpec) {
65 3 1. build : removed call to java/util/function/Function::apply → KILLED
2. build : replaced call to java/util/function/Function::apply with argument → KILLED
3. build : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$2::build → KILLED
				return operationBuilder.apply(inputSpec);
66
			}
67
		};
68
	}
69
70
	@SuppressWarnings("rawtypes")
71
	public static OperationFactory of(final String name, final Class[] acceptedTypes, final Class returnedType,
72
			final BiFunction<Object[], Object[], Object> compute) {
73
		Validate.notBlank(name);
74
		Objects.requireNonNull(acceptedTypes);
75
		Objects.requireNonNull(returnedType);
76
		Objects.requireNonNull(compute);
77
78 6 1. of : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::of → KILLED
2. <init> : Removed assignment to member variable val$name → KILLED
3. of : removed call to net/bmahe/genetics4j/gp/OperationFactories$3::<init> → KILLED
4. <init> : Removed assignment to member variable val$returnedType → KILLED
5. <init> : Removed assignment to member variable val$compute → KILLED
6. <init> : Removed assignment to member variable val$acceptedTypes → KILLED
		return new OperationFactory() {
79
80
			@Override
81
			public Class[] acceptedTypes() {
82 1 1. acceptedTypes : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$3::acceptedTypes → KILLED
				return acceptedTypes;
83
			}
84
85
			@Override
86
			public Class returnedType() {
87 1 1. returnedType : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$3::returnedType → KILLED
				return returnedType;
88
			}
89
90
			@Override
91
			public Operation build(final InputSpec inputSpec) {
92 3 1. build : removed call to java/util/Arrays::asList → KILLED
2. build : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$3::build → KILLED
3. build : removed call to net/bmahe/genetics4j/gp/ImmutableOperation::of → KILLED
				return ImmutableOperation.of(name, Arrays.asList(acceptedTypes), returnedType, compute);
93
			}
94
		};
95
	}
96
97
	@SuppressWarnings("rawtypes")
98
	public static OperationFactory ofCoefficient(final String name, final Class returnedType, final Object value) {
99
		Validate.notBlank(name);
100
		Objects.requireNonNull(returnedType);
101
		Objects.requireNonNull(value);
102
103 5 1. <init> : Removed assignment to member variable val$returnedType → NO_COVERAGE
2. ofCoefficient : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofCoefficient → NO_COVERAGE
3. <init> : Removed assignment to member variable val$name → NO_COVERAGE
4. ofCoefficient : removed call to net/bmahe/genetics4j/gp/OperationFactories$4::<init> → NO_COVERAGE
5. <init> : Removed assignment to member variable val$value → NO_COVERAGE
		return new OperationFactory() {
104
105
			@Override
106
			public Class[] acceptedTypes() {
107 2 1. acceptedTypes : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$4::acceptedTypes → NO_COVERAGE
2. acceptedTypes : Substituted 0 with 1 → NO_COVERAGE
				return new Class[] {};
108
			}
109
110
			@Override
111
			public Class returnedType() {
112 1 1. returnedType : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$4::returnedType → NO_COVERAGE
				return returnedType;
113
			}
114
115
			@Override
116
			public Operation build(final InputSpec inputSpec) {
117 1 1. build : removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation::builder → NO_COVERAGE
				final Builder<Object> operationBuilder = ImmutableCoefficientOperation.builder();
118
119 2 1. build : removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::name → NO_COVERAGE
2. build : replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::name with receiver → NO_COVERAGE
				operationBuilder.name(name)
120 2 1. build : removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::value → NO_COVERAGE
2. build : replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::value with receiver → NO_COVERAGE
						.value(value)
121 3 1. build : replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::returnedType with receiver → NO_COVERAGE
2. build : removed call to java/lang/String::valueOf → NO_COVERAGE
3. build : removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::returnedType → NO_COVERAGE
						.returnedType(returnedType)
122 2 1. build : replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::prettyName with receiver → NO_COVERAGE
2. build : removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::prettyName → NO_COVERAGE
						.prettyName(name + "[" + value + "]");
123
124 2 1. build : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$4::build → NO_COVERAGE
2. build : removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::build → NO_COVERAGE
				return operationBuilder.build();
125
			}
126
		};
127
	}
128
129
	public static <T> OperationFactory ofTerminal(final String name, final Class<T> returnedType,
130
			final Supplier<T> compute) {
131
		Validate.notBlank(name);
132
		Objects.requireNonNull(returnedType);
133
		Objects.requireNonNull(compute);
134
135 3 1. ofTerminal : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofTerminal → KILLED
2. ofTerminal : Substituted 0 with 1 → KILLED
3. ofTerminal : removed call to net/bmahe/genetics4j/gp/OperationFactories::of → KILLED
		return of(name, new Class[] {}, returnedType, (input, parameter) -> {
136 2 1. lambda$ofTerminal$0 : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::lambda$ofTerminal$0 → KILLED
2. lambda$ofTerminal$0 : removed call to java/util/function/Supplier::get → KILLED
			return compute.get();
137
		});
138
	}
139
140
	public static <T, U> OperationFactory ofUnary(final String name, final Class<T> acceptedType,
141
			final Class<U> returnedType, final Function<T, U> compute) {
142
		Validate.notBlank(name);
143
		Objects.requireNonNull(acceptedType);
144
		Objects.requireNonNull(returnedType);
145
		Objects.requireNonNull(compute);
146
147 4 1. ofUnary : Substituted 1 with 0 → KILLED
2. ofUnary : removed call to net/bmahe/genetics4j/gp/OperationFactories::of → KILLED
3. ofUnary : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofUnary → KILLED
4. ofUnary : Substituted 0 with 1 → KILLED
		return of(name, new Class[] { acceptedType }, returnedType, (input, parameters) -> {
148
			Objects.requireNonNull(parameters);
149
150 1 1. lambda$ofUnary$1 : Substituted 0 with 1 → KILLED
			final Object parameter1 = parameters[0];
151
			Objects.requireNonNull(parameter1);
152
			Validate.isInstanceOf(acceptedType, parameter1);
153
154
			@SuppressWarnings("unchecked")
155
			final T operand = (T) parameter1;
156
157 3 1. lambda$ofUnary$1 : removed call to java/util/function/Function::apply → KILLED
2. lambda$ofUnary$1 : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::lambda$ofUnary$1 → KILLED
3. lambda$ofUnary$1 : replaced call to java/util/function/Function::apply with argument → KILLED
			return compute.apply(operand);
158
		});
159
	}
160
161
	@SuppressWarnings("unchecked")
162
	public static <T, U, V> OperationFactory ofBinary(final String name, final Class<T> acceptedType1,
163
			final Class<U> acceptedType2, final Class<V> returnedType, final BiFunction<T, U, V> compute) {
164
		Validate.notBlank(name);
165
		Objects.requireNonNull(acceptedType1);
166
		Objects.requireNonNull(acceptedType2);
167
		Objects.requireNonNull(returnedType);
168
		Objects.requireNonNull(compute);
169
170 5 1. ofBinary : removed call to net/bmahe/genetics4j/gp/OperationFactories::of → KILLED
2. ofBinary : Substituted 0 with 1 → KILLED
3. ofBinary : Substituted 1 with 0 → KILLED
4. ofBinary : Substituted 2 with 3 → KILLED
5. ofBinary : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofBinary → KILLED
		return of(name, new Class[] { acceptedType1, acceptedType2 }, returnedType, (input, parameters) -> {
171
			Objects.requireNonNull(parameters);
172
173 1 1. lambda$ofBinary$2 : Substituted 0 with 1 → KILLED
			final Object parameter1 = parameters[0];
174
			Objects.requireNonNull(parameter1);
175
			Validate.isInstanceOf(acceptedType1, parameter1);
176
			final T operand1 = (T) parameter1;
177
178 1 1. lambda$ofBinary$2 : Substituted 1 with 0 → KILLED
			final Object parameter2 = parameters[1];
179
			Objects.requireNonNull(parameter2);
180
			Validate.isInstanceOf(acceptedType2, parameter2);
181
			final U operand2 = (U) parameter2;
182
183 3 1. lambda$ofBinary$2 : removed call to java/util/function/BiFunction::apply → KILLED
2. lambda$ofBinary$2 : replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::lambda$ofBinary$2 → KILLED
3. lambda$ofBinary$2 : replaced call to java/util/function/BiFunction::apply with argument → KILLED
			return compute.apply(operand1, operand2);
184
		});
185
	}
186
}

Mutations

26

1.1
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
Removed assignment to member variable val$returnedType → KILLED

2.2
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
Removed assignment to member variable val$acceptedTypes → KILLED

3.3
Location : ofOperationSupplier
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofOperationSupplier → KILLED

4.4
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
Removed assignment to member variable val$buildSupplier → KILLED

5.5
Location : ofOperationSupplier
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
removed call to net/bmahe/genetics4j/gp/OperationFactories$1::<init> → KILLED

30

1.1
Location : returnedType
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$1::returnedType → KILLED

35

1.1
Location : acceptedTypes
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$1::acceptedTypes → KILLED

40

1.1
Location : build
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$1::build → KILLED

2.2
Location : build
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofOperationSupplier()]
removed call to java/util/function/Supplier::get → KILLED

52

1.1
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
Removed assignment to member variable val$returnedType → KILLED

2.2
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
Removed assignment to member variable val$acceptedTypes → KILLED

3.3
Location : of
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
removed call to net/bmahe/genetics4j/gp/OperationFactories$2::<init> → KILLED

4.4
Location : of
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::of → KILLED

5.5
Location : <init>
Killed by : net.bmahe.genetics4j.gp.utils.ProgramUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.utils.ProgramUtilsTest]/[method:incompatibleInput()]
Removed assignment to member variable val$operationBuilder → KILLED

55

1.1
Location : acceptedTypes
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$2::acceptedTypes → KILLED

60

1.1
Location : returnedType
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$2::returnedType → KILLED

65

1.1
Location : build
Killed by : net.bmahe.genetics4j.gp.utils.ProgramUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.utils.ProgramUtilsTest]/[method:incompatibleInput()]
removed call to java/util/function/Function::apply → KILLED

2.2
Location : build
Killed by : net.bmahe.genetics4j.gp.utils.ProgramUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.utils.ProgramUtilsTest]/[method:incompatibleInput()]
replaced call to java/util/function/Function::apply with argument → KILLED

3.3
Location : build
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$2::build → KILLED

78

1.1
Location : of
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBiFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::of → KILLED

2.2
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
Removed assignment to member variable val$name → KILLED

3.3
Location : of
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBiFunction()]
removed call to net/bmahe/genetics4j/gp/OperationFactories$3::<init> → KILLED

4.4
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBiFunction()]
Removed assignment to member variable val$returnedType → KILLED

5.5
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
Removed assignment to member variable val$compute → KILLED

6.6
Location : <init>
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBiFunction()]
Removed assignment to member variable val$acceptedTypes → KILLED

82

1.1
Location : acceptedTypes
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBiFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$3::acceptedTypes → KILLED

87

1.1
Location : returnedType
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBiFunction()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$3::returnedType → KILLED

92

1.1
Location : build
Killed by : net.bmahe.genetics4j.gp.utils.ProgramUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.utils.ProgramUtilsTest]/[method:simpleTerminal()]
removed call to java/util/Arrays::asList → KILLED

2.2
Location : build
Killed by : net.bmahe.genetics4j.gp.utils.ProgramUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.utils.ProgramUtilsTest]/[method:simpleTerminal()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$3::build → KILLED

3.3
Location : build
Killed by : net.bmahe.genetics4j.gp.utils.ProgramUtilsTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.utils.ProgramUtilsTest]/[method:simpleTerminal()]
removed call to net/bmahe/genetics4j/gp/ImmutableOperation::of → KILLED

103

1.1
Location : <init>
Killed by : none
Removed assignment to member variable val$returnedType → NO_COVERAGE

2.2
Location : ofCoefficient
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofCoefficient → NO_COVERAGE

3.3
Location : <init>
Killed by : none
Removed assignment to member variable val$name → NO_COVERAGE

4.4
Location : ofCoefficient
Killed by : none
removed call to net/bmahe/genetics4j/gp/OperationFactories$4::<init> → NO_COVERAGE

5.5
Location : <init>
Killed by : none
Removed assignment to member variable val$value → NO_COVERAGE

107

1.1
Location : acceptedTypes
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$4::acceptedTypes → NO_COVERAGE

2.2
Location : acceptedTypes
Killed by : none
Substituted 0 with 1 → NO_COVERAGE

112

1.1
Location : returnedType
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$4::returnedType → NO_COVERAGE

117

1.1
Location : build
Killed by : none
removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation::builder → NO_COVERAGE

119

1.1
Location : build
Killed by : none
removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::name → NO_COVERAGE

2.2
Location : build
Killed by : none
replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::name with receiver → NO_COVERAGE

120

1.1
Location : build
Killed by : none
removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::value → NO_COVERAGE

2.2
Location : build
Killed by : none
replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::value with receiver → NO_COVERAGE

121

1.1
Location : build
Killed by : none
replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::returnedType with receiver → NO_COVERAGE

2.2
Location : build
Killed by : none
removed call to java/lang/String::valueOf → NO_COVERAGE

3.3
Location : build
Killed by : none
removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::returnedType → NO_COVERAGE

122

1.1
Location : build
Killed by : none
replaced call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::prettyName with receiver → NO_COVERAGE

2.2
Location : build
Killed by : none
removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::prettyName → NO_COVERAGE

124

1.1
Location : build
Killed by : none
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories$4::build → NO_COVERAGE

2.2
Location : build
Killed by : none
removed call to net/bmahe/genetics4j/gp/math/ImmutableCoefficientOperation$Builder::build → NO_COVERAGE

135

1.1
Location : ofTerminal
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofTerminal → KILLED

2.2
Location : ofTerminal
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
Substituted 0 with 1 → KILLED

3.3
Location : ofTerminal
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
removed call to net/bmahe/genetics4j/gp/OperationFactories::of → KILLED

136

1.1
Location : lambda$ofTerminal$0
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::lambda$ofTerminal$0 → KILLED

2.2
Location : lambda$ofTerminal$0
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofTerminal()]
removed call to java/util/function/Supplier::get → KILLED

147

1.1
Location : ofUnary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
Substituted 1 with 0 → KILLED

2.2
Location : ofUnary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
removed call to net/bmahe/genetics4j/gp/OperationFactories::of → KILLED

3.3
Location : ofUnary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofUnary → KILLED

4.4
Location : ofUnary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
Substituted 0 with 1 → KILLED

150

1.1
Location : lambda$ofUnary$1
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
Substituted 0 with 1 → KILLED

157

1.1
Location : lambda$ofUnary$1
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
removed call to java/util/function/Function::apply → KILLED

2.2
Location : lambda$ofUnary$1
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::lambda$ofUnary$1 → KILLED

3.3
Location : lambda$ofUnary$1
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofUnary()]
replaced call to java/util/function/Function::apply with argument → KILLED

170

1.1
Location : ofBinary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
removed call to net/bmahe/genetics4j/gp/OperationFactories::of → KILLED

2.2
Location : ofBinary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
Substituted 0 with 1 → KILLED

3.3
Location : ofBinary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
Substituted 1 with 0 → KILLED

4.4
Location : ofBinary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
Substituted 2 with 3 → KILLED

5.5
Location : ofBinary
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::ofBinary → KILLED

173

1.1
Location : lambda$ofBinary$2
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
Substituted 0 with 1 → KILLED

178

1.1
Location : lambda$ofBinary$2
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
Substituted 1 with 0 → KILLED

183

1.1
Location : lambda$ofBinary$2
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
removed call to java/util/function/BiFunction::apply → KILLED

2.2
Location : lambda$ofBinary$2
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
replaced return value with null for net/bmahe/genetics4j/gp/OperationFactories::lambda$ofBinary$2 → KILLED

3.3
Location : lambda$ofBinary$2
Killed by : net.bmahe.genetics4j.gp.OperationFactoriesTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.OperationFactoriesTest]/[method:ofBinary()]
replaced call to java/util/function/BiFunction::apply with argument → KILLED

Active mutators

Tests examined


Report generated by PIT 1.19.6