Enum MutationStatus
- java.lang.Object
-
- java.lang.Enum<MutationStatus>
-
- com.parasoft.findings.jenkins.coverage.model.MutationStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<MutationStatus>
public enum MutationStatus extends Enum<MutationStatus>
Represents all possible outcomes for mutations.- Author:
- Melissa Bauer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KILLED
MEMORY_ERROR
NO_COVERAGE
NON_VIABLE
RUN_ERROR
SURVIVED
TIMED_OUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCovered()
boolean
isDetected()
boolean
isMissed()
boolean
isNotDetected()
static MutationStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static MutationStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KILLED
public static final MutationStatus KILLED
-
SURVIVED
public static final MutationStatus SURVIVED
-
NO_COVERAGE
public static final MutationStatus NO_COVERAGE
-
NON_VIABLE
public static final MutationStatus NON_VIABLE
-
TIMED_OUT
public static final MutationStatus TIMED_OUT
-
MEMORY_ERROR
public static final MutationStatus MEMORY_ERROR
-
RUN_ERROR
public static final MutationStatus RUN_ERROR
-
-
Method Detail
-
values
public static MutationStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MutationStatus c : MutationStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MutationStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isDetected
public boolean isDetected()
-
isNotDetected
public boolean isNotDetected()
-
isCovered
public boolean isCovered()
-
isMissed
public boolean isMissed()
-
-