[−][src]Module capsule::testils
This is supported on
feature="testils"
only.Utilities for unit tests and benchmarks.
Modules
byte_arrays | feature="testils" Hand-crafted packet byte-arrays for testing. |
criterion | feature="testils" Iterator extensions to criterion, leveraging proptest strategy generators. |
proptest | feature="testils" Defines extended proptest |
Structs
MempoolGuard | feature="testils" A handle that keeps the mempool in scope for the duration of the test. It will unset the thread-bound mempool on drop. |
Rvg | feature="testils" A random value generator (RVG), which, given proptest strategies, will generate random values based on those strategies. |
Traits
PacketExt | feature="testils"
|
Functions
cargo_test_init | feature="testils" Run once initialization of EAL for |
new_mempool | feature="testils" Creates a new mempool for test that automatically cleans up after the test completes. |