Namespace: FsCheck.FSharp
Assembly: FsCheck.dll
Function or value | Description |
|
Generates one-dimensional arrays. The length of the generated array is between 0 and size. The sum of the sizes of the elements is equal to the size of the generated array.
|
|
Construct an Arbitrary instance for a type that can be mapped to and from another type (e.g. a wrapper), based on a Arbitrary instance for the source type and two mapping functions.
|
|
Return an Arbitrary instance that is a filtered version of an existing arbitrary instance. The generator uses Gen.where, and the shrinks are filtered using Seq.filter with the given predicate.
|
|
Construct an Arbitrary instance from a generator. Shrink is not supported for this type.
|
|
Construct an Arbitrary instance from a generator and shrinker.
|
|
Generates FSharp.Core list<'T> values. The length of the generated list is between 0 and size. The sum of the sizes of the elements is equal to the size of the generated list.
|
|
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.
|
|
Generates Map |
|
Generates nullable values that are null 1/8 of the time.
|
|
Generates option values that are None 1/8 of the time.
|
|
Generates pure functions that produce the given output values 'U. There is no shrinking for functions.
|
|
|
|
Generates F# function values that generate an instance of the function result type about half the time. The other times it generate one of the given exceptions.
|
|
Get the Gen from the given Arbitary.
|
|
Get the shrinker function from the given Arbitrary.
|
|
|