EAExecutionContext.java

1
package net.bmahe.genetics4j.core.spec;
2
3
import org.immutables.value.Value;
4
5
/**
6
 * Evolutionary Algorithm - Execution Context
7
 * <p>
8
 * This defines how the Evolutionary Algorithm will be executed.
9
 *
10
 * @param <T> Type of the fitness measurement
11
 */
12
@Value.Immutable
13
public abstract class EAExecutionContext<T extends Comparable<T>> extends AbstractEAExecutionContext<T> {
14
15
	@Value.Default
16
	public int numberOfPartitions() {
17 2 1. numberOfPartitions : replaced int return with 0 for net/bmahe/genetics4j/core/spec/EAExecutionContext::numberOfPartitions → KILLED
2. numberOfPartitions : removed call to java/lang/Runtime::getRuntime → KILLED
		return Runtime.getRuntime()
18 1 1. numberOfPartitions : removed call to java/lang/Runtime::availableProcessors → KILLED
				.availableProcessors();
19
	}
20
21
	public static <U extends Comparable<U>> ImmutableEAExecutionContext.Builder<U> builder() {
22 2 1. builder : removed call to net/bmahe/genetics4j/core/spec/ImmutableEAExecutionContext::builder → NO_COVERAGE
2. builder : replaced return value with null for net/bmahe/genetics4j/core/spec/EAExecutionContext::builder → NO_COVERAGE
		return ImmutableEAExecutionContext.builder();
23
	}
24
}

Mutations

17

1.1
Location : numberOfPartitions
Killed by : net.bmahe.genetics4j.core.EASystemTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.EASystemTest]/[method:testEvaluateOnce()]
replaced int return with 0 for net/bmahe/genetics4j/core/spec/EAExecutionContext::numberOfPartitions → KILLED

2.2
Location : numberOfPartitions
Killed by : net.bmahe.genetics4j.core.replacement.ElitismImplTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.replacement.ElitismImplTest]/[method:ctorNoSurvivorSelector()]
removed call to java/lang/Runtime::getRuntime → KILLED

18

1.1
Location : numberOfPartitions
Killed by : net.bmahe.genetics4j.core.EASystemTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.EASystemTest]/[method:testEvaluateOnce()]
removed call to java/lang/Runtime::availableProcessors → KILLED

22

1.1
Location : builder
Killed by : none
removed call to net/bmahe/genetics4j/core/spec/ImmutableEAExecutionContext::builder → NO_COVERAGE

2.2
Location : builder
Killed by : none
replaced return value with null for net/bmahe/genetics4j/core/spec/EAExecutionContext::builder → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.19.6