public final class MutationDetails extends Object implements Serializable
Constructor and Description |
---|
MutationDetails(MutationIdentifier id,
String filename,
String description,
int lineNumber,
int block) |
MutationDetails(MutationIdentifier id,
String filename,
String description,
int lineNumber,
int block,
boolean isInFinallyBlock,
PoisonStatus poison) |
Modifier and Type | Method and Description |
---|---|
void |
addTestsInOrder(Collection<TestInfo> testNames)
Adds tests to the list of covering tests
|
boolean |
equals(Object obj) |
int |
getBlock()
Returns the basic block in which this mutation occurs.
|
ClassLine |
getClassLine()
Returns the ClassLine in which this mutation is located
|
ClassName |
getClassName()
Returns the class in which this mutation is located
|
String |
getDescription()
Returns the human readable description of the mutation.
|
String |
getFilename()
Returns the file in which this mutation is located
|
int |
getFirstIndex()
Returns the index to the first instruction on which this mutation occurs.
|
String |
getHtmlSafeDescription()
Deprecated.
|
MutationIdentifier |
getId()
Returns the identified for this mutation
|
int |
getInstructionIndex()
Zero based index to first affected ASM instruction
|
int |
getLineNumber()
Returns the line number on which the mutation occurs as reported within the
jvm bytecode
|
String |
getLocation()
Deprecated.
|
MethodName |
getMethod()
Returns the class in which this mutation is located
|
String |
getMutator()
Returns the name of the mutator that created this mutation
|
List<TestInfo> |
getTestsInOrder()
Returns the tests that cover this mutation in optimised order
|
int |
hashCode() |
boolean |
isInFinallyBlock()
Indicates if the mutation is within a finally block
|
boolean |
isInStaticInitializer()
Indicates if this mutation is in a static initializer block
|
Boolean |
matchesId(MutationIdentifier id)
Returns true if this mutation has a matching identifier
|
boolean |
mayPoisonJVM()
Indicates if this mutation might poison state within the jvm (e.g affect
the values of static variable)
|
String |
toString() |
MutationDetails |
withDescription(String desc) |
MutationDetails |
withPoisonStatus(PoisonStatus poisonStatus) |
public MutationDetails(MutationIdentifier id, String filename, String description, int lineNumber, int block)
public MutationDetails(MutationIdentifier id, String filename, String description, int lineNumber, int block, boolean isInFinallyBlock, PoisonStatus poison)
public MutationDetails withDescription(String desc)
public MutationDetails withPoisonStatus(PoisonStatus poisonStatus)
public String getDescription()
@Deprecated public String getHtmlSafeDescription()
@Deprecated public String getLocation()
public ClassName getClassName()
public MethodName getMethod()
public String getFilename()
public int getLineNumber()
public ClassLine getClassLine()
public MutationIdentifier getId()
public List<TestInfo> getTestsInOrder()
public void addTestsInOrder(Collection<TestInfo> testNames)
testNames
- The tests to addpublic boolean mayPoisonJVM()
public boolean isInStaticInitializer()
public int getBlock()
public Boolean matchesId(MutationIdentifier id)
id
- the MutationIdentifier to matchpublic String getMutator()
public int getFirstIndex()
public int getInstructionIndex()
public boolean isInFinallyBlock()
Copyright © 2021 org.pitest. All rights reserved.