public enum DetectionStatus extends Enum<DetectionStatus>
Enum Constant and Description |
---|
KILLED
Mutation was detected by a test
|
MEMORY_ERROR
JVM ran out of memory while processing a mutation.
|
NO_COVERAGE
Mutation is not covered by any test.
|
NON_VIABLE
Mutation could not be loaded into the jvm.
|
NOT_STARTED
Mutation not yet assessed.
|
RUN_ERROR
Something went wrong.
|
STARTED
Processing of mutation has begun but not yet fully assessed.
|
SURVIVED
No test failed in the presence of the mutation
|
TIMED_OUT
A test took a long time to run when mutation was present, might indicate an
that the mutation caused an infinite loop but we don't know for sure.
|
Modifier and Type | Method and Description |
---|---|
static DetectionStatus |
getForErrorExitCode(ExitCode exitCode)
Converts a process exit code to a mutation status
|
boolean |
hasCoverage() |
boolean |
isDetected()
Returns true if this status indicates that the mutation was distinguished
from the un-mutated code by the test suite, ignores the slight ambiguity of
some of the statuses.
|
static DetectionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DetectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DetectionStatus KILLED
public static final DetectionStatus SURVIVED
public static final DetectionStatus TIMED_OUT
public static final DetectionStatus NON_VIABLE
public static final DetectionStatus MEMORY_ERROR
public static final DetectionStatus NOT_STARTED
public static final DetectionStatus STARTED
public static final DetectionStatus RUN_ERROR
public static final DetectionStatus NO_COVERAGE
public static DetectionStatus[] values()
for (DetectionStatus c : DetectionStatus.values()) System.out.println(c);
public static DetectionStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DetectionStatus getForErrorExitCode(ExitCode exitCode)
exitCode
- Exit code to convertpublic boolean isDetected()
public boolean hasCoverage()
Copyright © 2021 org.pitest. All rights reserved.