[−][src]Module dicetest::stats
Stats help to analyze repeated test runs.
For any key you can count the occurrences of its values. Use it to reveal the
distribution of generated test data or the probability of branches.
Stats must enabled with the feature stats
.
Structs
Stat | Contains the counters of different values with the same key. |
Stats | Contains the stats for different keys. |
Enums
Counter | A counter for occurrences of a value. |
Functions
collect | Returns the stats for the evaluation of the given function. |
enabled | Returns if stats are currently enabled. |
inc | If stats are enabled, this function evaluates the given value and increments its counter for the given key. Otherwise this function is a noop. |