|
1
|
|
package net.bmahe.genetics4j.gp; |
|
2
|
|
|
|
3
|
|
import java.util.List; |
|
4
|
|
import java.util.Objects; |
|
5
|
|
|
|
6
|
|
import org.immutables.value.Value; |
|
7
|
|
import org.immutables.value.Value.Parameter; |
|
8
|
|
|
|
9
|
|
@Value.Immutable |
|
10
|
|
public abstract class InputSpec { |
|
11
|
|
|
|
12
|
|
@SuppressWarnings("rawtypes") |
|
13
|
|
@Parameter |
|
14
|
|
public abstract List<Class> types(); |
|
15
|
|
|
|
16
|
|
public int inputSize() { |
|
17
|
3
1. inputSize : removed call to java/util/List::size → KILLED
2. inputSize : removed call to net/bmahe/genetics4j/gp/InputSpec::types → KILLED
3. inputSize : replaced int return with 0 for net/bmahe/genetics4j/gp/InputSpec::inputSize → KILLED
|
return types().size(); |
|
18
|
|
} |
|
19
|
|
|
|
20
|
|
public static InputSpec of(final List<Class> types) { |
|
21
|
|
Objects.requireNonNull(types); |
|
22
|
|
|
|
23
|
2
1. of : replaced return value with null for net/bmahe/genetics4j/gp/InputSpec::of → NO_COVERAGE
2. of : removed call to net/bmahe/genetics4j/gp/ImmutableInputSpec::of → NO_COVERAGE
|
return ImmutableInputSpec.of(types); |
|
24
|
|
} |
|
25
|
|
|
|
26
|
|
public static InputSpec of(final Class... types) { |
|
27
|
|
Objects.requireNonNull(types); |
|
28
|
|
|
|
29
|
3
1. of : replaced return value with null for net/bmahe/genetics4j/gp/InputSpec::of → KILLED
2. of : removed call to net/bmahe/genetics4j/gp/ImmutableInputSpec::of → KILLED
3. of : removed call to java/util/List::of → KILLED
|
return ImmutableInputSpec.of(List.of(types)); |
|
30
|
|
} |
|
31
|
|
|
|
32
|
|
} |
| | Mutations |
| 17 |
|
1.1 Location : inputSize Killed by : net.bmahe.genetics4j.gp.InputSpecTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.InputSpecTest]/[method:inputSizeValidation()] removed call to java/util/List::size → KILLED
2.2 Location : inputSize Killed by : net.bmahe.genetics4j.gp.InputSpecTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.InputSpecTest]/[method:inputSizeValidation()] removed call to net/bmahe/genetics4j/gp/InputSpec::types → KILLED
3.3 Location : inputSize Killed by : net.bmahe.genetics4j.gp.InputSpecTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.InputSpecTest]/[method:inputSizeValidation()] replaced int return with 0 for net/bmahe/genetics4j/gp/InputSpec::inputSize → KILLED
|
| 23 |
|
1.1 Location : of Killed by : none replaced return value with null for net/bmahe/genetics4j/gp/InputSpec::of → NO_COVERAGE
2.2 Location : of Killed by : none removed call to net/bmahe/genetics4j/gp/ImmutableInputSpec::of → NO_COVERAGE
|
| 29 |
|
1.1 Location : of Killed by : net.bmahe.genetics4j.gp.InputSpecTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.InputSpecTest]/[method:inputSizeValidation()] replaced return value with null for net/bmahe/genetics4j/gp/InputSpec::of → KILLED
2.2 Location : of Killed by : net.bmahe.genetics4j.gp.InputSpecTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.InputSpecTest]/[method:inputSizeValidation()] removed call to net/bmahe/genetics4j/gp/ImmutableInputSpec::of → KILLED
3.3 Location : of Killed by : net.bmahe.genetics4j.gp.InputSpecTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.gp.InputSpecTest]/[method:inputSizeValidation()] removed call to java/util/List::of → KILLED
|