[−][src]Crate dicetest
Dicetest is a framework for writing tests with pseudorandomly generated test data.
For more information, see the README.
Modules
adapters | A collection of |
codice | The standard collection of |
dice | The standard collection of |
hints | Hints help to analyze a single test run, mostly the counterexample. |
prelude | Contains the most useful imports for writing tests and value generators. |
runner | A runner for tests with pseudorandomly generated test data. |
stats | Stats help to analyze repeated test runs. |
Macros
hint | Adds a hint that contains the arguments applied to the |
hint_debug | Adds a hint that contains the stringified argument and the argument value converted with
|
stat | Creates a stat with the first argument as stat key and the remaining arguments applied to the
|
stat_debug | Creates a stat with the stringified argument as stat key and the argument value converted with
|
Structs
Dicetest | Front end for configuring and running a test with pseudorandomly generated test data. |
Fate | Contains parameters for controlling the value generation with |
Limit | The upper limit for the size of dynamic data structures generated with |
Prng | A pseudorandom number generator. |
Seed | A seed for pseudorandomness. |
Traits
Codie | The counterpart of |
Die | Trait for generating pseudorandom values of type |
DieOnce | Trait for generating a single pseudorandom value of type |