Struct bolero::TestTarget[][src]

pub struct TestTarget<Generator, Engine, InputOwnership> { /* fields omitted */ }
Expand description

Configuration for a test target

Implementations

Create a TestTarget with the given Engine

Set the value generator for the TestTarget

The function with_generator::<Generator>(generator) will use the provided Generator, which implements generator::ValueGenerator, to generate input values of type Generator::Output.

This mode is used for testing an implementation that requires structured input with specific constraints applied to the type.

Set the type generator for the TestTarget

Calling with_type::<Type>() will generate random values of Type to be tested. Type is required to implement generator::TypeGenerator in order to use this method.

This mode is used for testing an implementation that requires structured input.

Map the value of the generator

Map the value of the generator with a new generator

Filter the value of the generator

Filter the value of the generator and map it to something else

Set the driver mode for the test target

Set the number of iterations executed

Set the maximum length of the generated bytes

Use a cloned value for the test input

Cloning the test inputs will force a call to Clone::clone on each input value, and therefore, will be less efficient than using a reference.

Iterate over all of the inputs and check the TestTarget

Iterate over all of the inputs and check the TestTarget

Iterate over all of the inputs and check the TestTarget

Iterate over all of the inputs and check the TestTarget

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.