proptest

Module arbitrary

source
Expand description

Defines the Arbitrary trait and related free functions and type aliases.

See the Arbitrary trait for more information.

Modules§

  • Provides higher order Arbitrary traits. This is mainly for use by proptest_derive.

Traits§

Functions§

Type Aliases§

  • A normal map from a strategy of I to O.
  • ParamsFor allows you to mention the type of Parameters for the input type A without directly using associated types or without resorting to existential types. This way, if implementation of Arbitrary changes, your tests should not break.
  • A static map from a strategy of I to O.
  • StrategyFor allows you to mention the type of Strategy for the input type A without directly using associated types or without resorting to existential types. This way, if implementation of Arbitrary changes, your tests should not break. This can be especially beneficial when the type of Strategy that you are dealing with is very long in name (the case with generics).