pub struct Testcase<I> where
    I: Input
{ /* private fields */ }
Expand description

An entry in the Testcase Corpus

Implementations

Impl of a testcase

Returns this testcase with a loaded input

Store the input to disk if possible

Get the input, if any

Get the input, if any (mutable)

Set the input

Get the filename, if any

Get the filename, if any (mutable)

Set the filename

Get the execution time of the testcase

Get the execution time of the testcase (mutable)

Sets the execution time of the current testcase

Get the executions

Get the executions (mutable)

Get the fuzz_level

Set the fuzz_level

Get if it was fuzzed

Set if it was fuzzed

Create a new Testcase instace given an input

Create a new Testcase instance given an Input and a filename

Create a new Testcase instance given an Input and the number of executions

Impl of a testcase when the input has len

Get the cached len

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Create a new default Testcase

Deserialize this value from the given Serde deserializer. Read more

Create a testcase from an input

Converts to this type from the input type.

Get all the metadata into an hashbrown::HashMap

Get all the metadata into an hashbrown::HashMap (mutable)

Add a metadata to the metadata map

Check for a metadata

Serialize this value into the given Serde serializer. Read more

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

Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

Prepend a value to this tuple, returning a new tuple with prepended value.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. 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.