cargo fmt
This commit is contained in:
parent
c3275bbc3f
commit
0cb5c33a29
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
pub mod testcase;
|
pub mod testcase;
|
||||||
pub use testcase::{Testcase, TestcaseMetadata};
|
pub use testcase::{Testcase, TestcaseMetadata};
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
use crate::inputs::Input;
|
use crate::inputs::Input;
|
||||||
use crate::AflError;
|
use crate::AflError;
|
||||||
|
|
||||||
@ -201,8 +200,10 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Create a new Testcase instace given an input
|
/// Create a new Testcase instace given an input
|
||||||
pub fn new<T>(input: T) -> Self
|
pub fn new<T>(input: T) -> Self
|
||||||
where T: Into<I>{
|
where
|
||||||
|
T: Into<I>,
|
||||||
|
{
|
||||||
Testcase {
|
Testcase {
|
||||||
input: Some(input.into()),
|
input: Some(input.into()),
|
||||||
filename: None,
|
filename: None,
|
||||||
|
@ -199,15 +199,15 @@ use unix_signals as os_signals;
|
|||||||
compile_error!("InMemoryExecutor not yet supported on this OS");
|
compile_error!("InMemoryExecutor not yet supported on this OS");
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
use alloc::boxed::Box;
|
|
||||||
use crate::executors::inmemory::InMemoryExecutor;
|
use crate::executors::inmemory::InMemoryExecutor;
|
||||||
use crate::executors::{Executor, ExitKind};
|
use crate::executors::{Executor, ExitKind};
|
||||||
use crate::inputs::Input;
|
use crate::inputs::Input;
|
||||||
use crate::observers::Observer;
|
use crate::observers::Observer;
|
||||||
use crate::AflError;
|
use crate::AflError;
|
||||||
|
use alloc::boxed::Box;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct NopInput {}
|
struct NopInput {}
|
||||||
@ -233,7 +233,7 @@ compile_error!("InMemoryExecutor not yet supported on this OS");
|
|||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
fn test_harness_fn_nop(_executor: &dyn Executor<NopInput>, buf: &[u8]) -> ExitKind {
|
fn test_harness_fn_nop(_executor: &dyn Executor<NopInput>, buf: &[u8]) -> ExitKind {
|
||||||
println!{"Fake exec with buf of len {}", buf.len()};
|
println! {"Fake exec with buf of len {}", buf.len()};
|
||||||
ExitKind::Ok
|
ExitKind::Ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
use alloc::borrow::ToOwned;
|
use alloc::borrow::ToOwned;
|
||||||
use alloc::rc::Rc;
|
use alloc::rc::Rc;
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
pub mod bytes;
|
pub mod bytes;
|
||||||
pub use bytes::BytesInput;
|
pub use bytes::BytesInput;
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
pub mod scheduled;
|
pub mod scheduled;
|
||||||
pub use scheduled::ComposedByMutations;
|
pub use scheduled::ComposedByMutations;
|
||||||
pub use scheduled::DefaultScheduledMutator;
|
pub use scheduled::DefaultScheduledMutator;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
use crate::inputs::{HasBytesVec, Input};
|
use crate::inputs::{HasBytesVec, Input};
|
||||||
use crate::mutators::Corpus;
|
use crate::mutators::Corpus;
|
||||||
use crate::mutators::Mutator;
|
use crate::mutators::Mutator;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
pub mod mutational;
|
pub mod mutational;
|
||||||
pub use mutational::DefaultMutationalStage;
|
pub use mutational::DefaultMutationalStage;
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
use alloc::rc::Rc;
|
use alloc::rc::Rc;
|
||||||
use core::cell::RefCell;
|
use core::cell::RefCell;
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user