Namespace: Hedgehog
Assembly: Hedgehog.dll
Function or value | Description |
|
|
|
|
|
|
|
|
|
|
|
Turns a tree, in to a tree of trees. Useful for testing Hedgehog itself as it allows you to observe the shrinks for a value inside a property, while still allowing the property to shrink to a minimal counterexample.
|
|
Apply an additional unfolding function to an existing tree. The root outcome remains intact, only the shrinks are affected, this applies recursively, so shrinks can only ever be added using this function. If you want to replace the shrinks altogether, try: Tree.unfold f (outcome oldTree)
|
|
Recursively discard any shrinks whose outcome does not pass the predicate. Note that the root outcome can never be discarded.
|
|
Recursively discard any trees whose outcome does not pass the predicate.
|
Full Usage:
fold f g arg3
Parameters:
'a -> 'x -> 'b
g : seq<'b> -> 'x
arg2 : Tree<'a>
Returns: 'b
|
|
Full Usage:
foldForest f g xs
Parameters:
'a -> 'x -> 'b
g : seq<'b> -> 'x
xs : seq<Tree<'a>>
Returns: 'x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All the possible shrinks of this outcome. This should be ordered smallest to largest as if property still fails with the first shrink in the list then we will commit to that path and none of the others will be tried (i.e. there is no backtracking).
|
|
Create a tree with a single outcome and no shrinks.
|
|
|
|
Build a tree from an unfolding function and a seed value.
|
Full Usage:
unfoldForest f g x
Parameters:
'b -> 'a
g : 'b -> seq<'b>
x : 'b
Returns: seq<Tree<'a>>
|
Build a list of trees from an unfolding function and a seed value.
|