[][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 DieOnce and Die adapters.

codice

The standard collection of Codie implementations.

dice

The standard collection of DieOnce and Die implementations.

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 format macro.

hint_debug

Adds a hint that contains the stringified argument and the argument value converted with Debug.

stat

Creates a stat with the first argument as stat key and the remaining arguments applied to the format macro as stat value.

stat_debug

Creates a stat with the stringified argument as stat key and the argument value converted with Debug as stat value.

Structs

Dicetest

Front end for configuring and running a test with pseudorandomly generated test data.

Fate

Contains parameters for controlling the value generation with DieOnce and Die.

Limit

The upper limit for the size of dynamic data structures generated with DieOnce and Die.

Prng

A pseudorandom number generator.

Seed

A seed for pseudorandomness.

Traits

Codie

The counterpart of DieOnce and Die. Instead of generating a value of type T from a seed, this trait allows to convert a value of type T into a seed.

Die

Trait for generating pseudorandom values of type T.

DieOnce

Trait for generating a single pseudorandom value of type T.