BitChromosomeSpec.java

1
package net.bmahe.genetics4j.core.spec.chromosome;
2
3
import org.apache.commons.lang3.Validate;
4
import org.immutables.value.Value;
5
6
@Value.Immutable
7
public abstract class BitChromosomeSpec implements ChromosomeSpec {
8
9
	@Value.Parameter
10
	public abstract int numBits();
11
12
	@Value.Check
13
	protected void check() {
14
		Validate.isTrue(numBits() > 0);
15
	}
16
17
	public static BitChromosomeSpec of(final int numBits) {
18 2 1. of : removed call to net/bmahe/genetics4j/core/spec/chromosome/ImmutableBitChromosomeSpec::of → KILLED
2. of : replaced return value with null for net/bmahe/genetics4j/core/spec/chromosome/BitChromosomeSpec::of → KILLED
		return ImmutableBitChromosomeSpec.of(numBits);
19
	}
20
}

Mutations

18

1.1
Location : of
Killed by : net.bmahe.genetics4j.core.mutation.chromosome.randommutation.FloatChromosomeRandomMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.mutation.chromosome.randommutation.FloatChromosomeRandomMutationHandlerTest]/[method:canHandle()]
removed call to net/bmahe/genetics4j/core/spec/chromosome/ImmutableBitChromosomeSpec::of → KILLED

2.2
Location : of
Killed by : net.bmahe.genetics4j.core.mutation.chromosome.randommutation.FloatChromosomeRandomMutationHandlerTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.mutation.chromosome.randommutation.FloatChromosomeRandomMutationHandlerTest]/[method:canHandle()]
replaced return value with null for net/bmahe/genetics4j/core/spec/chromosome/BitChromosomeSpec::of → KILLED

Active mutators

Tests examined


Report generated by PIT 1.19.6