pub struct Arguments {
pub command: FuzzerCommand,
pub max_input_cplx: f64,
pub detect_infinite_loop: bool,
pub maximum_duration: Duration,
pub maximum_iterations: usize,
pub stop_after_first_failure: bool,
pub corpus_in: Option<PathBuf>,
pub corpus_out: Option<PathBuf>,
pub artifacts_folder: Option<PathBuf>,
pub stats_folder: Option<PathBuf>,
}
Expand description
Various arguments given to the fuzzer, typically provided by the cargo fuzzcheck
command line tool.
Fields
command: FuzzerCommand
max_input_cplx: f64
detect_infinite_loop: bool
maximum_duration: Duration
maximum_iterations: usize
stop_after_first_failure: bool
corpus_in: Option<PathBuf>
corpus_out: Option<PathBuf>
artifacts_folder: Option<PathBuf>
stats_folder: Option<PathBuf>
Implementations
sourceimpl Arguments
impl Arguments
pub fn for_internal_documentation_test() -> Arguments
sourceimpl Arguments
impl Arguments
sourcepub fn from_matches(
matches: &Matches,
for_cargo_fuzzcheck: bool
) -> Result<Arguments, ArgumentsError>
pub fn from_matches(
matches: &Matches,
for_cargo_fuzzcheck: bool
) -> Result<Arguments, ArgumentsError>
Create an Arguments
from the parsed result of options_parser()
.
Arguments
for_cargo_fuzzcheck
: true if this method is called withincargo fuzzcheck
, false otherwise. This is becausecargo fuzzcheck
also needs a fuzz target as argument, while the fuzzed binary does not.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Arguments
impl Send for Arguments
impl Sync for Arguments
impl Unpin for Arguments
impl UnwindSafe for Arguments
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more