Expand description
Common zebra_test
types, traits, and functions.
Re-exports§
pub use crate::command::test_cmd;
pub use crate::command::CommandExt;
pub use crate::command::TestChild;
pub use color_eyre;
pub use color_eyre::eyre;
Modules§
- Re-exports the entire public API of proptest so that an import of
prelude
allows simply writing, for example,prop::num::i32::ANY
rather thanproptest::num::i32::ANY
plus a separateuse proptest;
.
Macros§
- Similar to
assert!
from std, but returns a test failure instead of panicking if the condition fails. - Similar to
assert_eq!
from std, but returns a test failure instead of panicking if the condition fails. - Similar to
assert_ne!
from std, but returns a test failure instead of panicking if the condition fails. - Rejects the test input if assumptions are not met.
- Convenience to define functions which produce new strategies.
- Produce a strategy which picks one of the listed choices.
- Easily define
proptest
tests.
Structs§
- A boxed
Strategy
trait object as produced byStrategy::boxed()
. - A
Strategy
which always produces a single value value and never simplifies. - Configuration for how a proptest test should be run.
- A boxed
Strategy
trait object which is alsoSync
andSend
, as produced byStrategy::sboxed()
.
Enums§
- Errors which can be returned from test cases to indicate non-successful completion.
Traits§
- Arbitrary determines a canonical
Strategy
for the implementing type. - An automatically-implemented extension trait on
RngCore
providing high-level generic methods for sampling values and other convenience methods. - The core of a random number generator.
- A strategy for producing arbitrary values of a given type.
Functions§
- Generates a
Strategy
producingArbitrary
values ofA
with the given configuration arguments passed inargs
. Unlikearbitrary_with
, it should be used for being explicit on whatA
is. For clarity, this may be a good idea.
Type Aliases§
- type alias for
Result<T, Report>