| Constructor and Description |
|---|
ChooseShrinker(int min,
int max) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMax() |
int |
getMin() |
java.util.List<java.lang.Integer> |
shrink(int failure)
Given a value, T, this function returns possible "smaller"
values to be used as candidates for shrinking.
|
public java.util.List<java.lang.Integer> shrink(int failure)
Given a value, T, this function returns possible "smaller" values to be used as candidates for shrinking.
A smaller value is defined by the Shrinker. For a string it may be considered a "simpler" string (one with less duplication), and/or one with less characters. For an integer it is typically considered a smaller value with a positive sign.
If the value cannot be shrunk further, or the type does not support meaningful shrinking, then this function should return an empty list.
public int getMin()
public int getMax()