Arb Module
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Return an Arbitrary instance that is a mapped and filtered version of an existing arbitrary instance. The generator uses Gen.map with the given mapper and then Gen.where with the given predicate, and the shrinks are filtered using Seq.filter with the given predicate. This is sometimes useful if using just a filter would reduce the chance of getting a good value from the generator - and you can map the value instead. E.g. PositiveInt.
|
|
|
|
|
Full Usage:
Arb.nullableRef value
Parameters:
Arbitrary<'T>
Returns: Arbitrary<NullableRef<'T>>
Type parameters: 'T |
Generates reference values that are null 1/8 of the time.
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
Arb.toShrink arb
Parameters:
Arbitrary<'Value>
Returns: 'Value -> 'Value seq
Type parameters: 'Value |
Get the shrinker function from the given Arbitrary.
|
|
FsCheck