Crate bolero

Source

Modules§

generator
Re-export of bolero_generator

Macros§

check
Execute tests for a given target
fuzzDeprecated

Structs§

ByteSliceGenerator
Default generator for byte slices
DefaultEngine
The default engine used when defining a test target Engine implementation which mimics Rust’s default test harness. By default, the test inputs will include any present corpus and crashes files, as well as generating
TestTarget
Configuration for a test target

Enums§

DriverModeDeprecated
Byte exhaustion strategy for the driver

Traits§

Any
AnySliceExt
AnySliceMutExt
Driver
Trait for driving the generation of a value
Engine
Trait for defining an engine that executes a test
OneOfExt
Extensions for picking a generator from a set of generators
OneValueOfExt
Extensions for picking a value from a set of values
Test
Trait for defining a test case
TypeGenerator
Generate a value for a given type
TypeGeneratorWithParams
Convert a type generator into the default value generator
ValueGenerator
Generate a value with a parameterized generator

Functions§

any
assume
constant
Always generate the same value
fill
fill_bytes
genDeprecated
Generate a value for a given type
gen_withDeprecated
Generate a value for a given type
one_of
Pick a generator for the provided set of generators
one_value_of
Pick a value for the provided set of values
pick
produce
Generate a value for a given type
produce_with
Generate a value for a given type with additional constraints
shuffle

Derive Macros§

TypeGenerator
Derive the an implementation of TypeGenerator for the given type.