public class InputCoverageGoal extends Object implements Serializable, Comparable<InputCoverageGoal>
| Constructor and Description |
|---|
InputCoverageGoal(String className,
String methodName,
int argIndex,
org.objectweb.asm.Type type,
String valueDescriptor)
Can be used to create an arbitrary
InputCoverageGoal trying to cover the
method such that it returns a given value
If the method returns a boolean, this goal will try to cover the method with either true or false
If the given branch is null, this goal will try to cover the root branch
of the method identified by the given name - meaning it will just try to
call the method at hand
Otherwise this goal will try to reach the given branch and if value is
true, make the branchInstruction jump and visa versa |
InputCoverageGoal(String className,
String methodName,
int argIndex,
org.objectweb.asm.Type type,
String valueDescriptor,
Number numericValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(InputCoverageGoal o) |
static Set<InputCoverageGoal> |
createCoveredGoalsFromParameters(String className,
String methodName,
String methodDesc,
List<Object> argumentsValues) |
boolean |
equals(Object obj) |
int |
getArgIndex() |
String |
getClassName() |
String |
getMethodName() |
Number |
getNumericValue() |
org.objectweb.asm.Type |
getType() |
String |
getValueDescriptor() |
int |
hashCode() |
String |
toString()
Readable representation
|
public InputCoverageGoal(String className, String methodName, int argIndex, org.objectweb.asm.Type type, String valueDescriptor)
InputCoverageGoal trying to cover the
method such that it returns a given value
If the method returns a boolean, this goal will try to cover the method with either true or false
If the given branch is null, this goal will try to cover the root branch
of the method identified by the given name - meaning it will just try to
call the method at hand
Otherwise this goal will try to reach the given branch and if value is
true, make the branchInstruction jump and visa versapublic String getClassName()
public String getMethodName()
public int getArgIndex()
public org.objectweb.asm.Type getType()
public String getValueDescriptor()
public Number getNumericValue()
public int compareTo(InputCoverageGoal o)
compareTo in interface Comparable<InputCoverageGoal>Copyright © 2010–2017 EvoSuite. All rights reserved.