code format
This commit is contained in:
parent
194ac619be
commit
73e95331f9
@ -123,7 +123,6 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Impl of a testcase
|
/// Impl of a testcase
|
||||||
impl<I> Testcase<I>
|
impl<I> Testcase<I>
|
||||||
where
|
where
|
||||||
@ -191,5 +190,4 @@ where
|
|||||||
metadatas: HashMap::default(),
|
metadatas: HashMap::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,6 @@ where
|
|||||||
stages: vec![],
|
stages: vec![],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
@ -109,7 +108,8 @@ mod tests {
|
|||||||
let mut corpus = InMemoryCorpus::<BytesInput, _>::new(&rand);
|
let mut corpus = InMemoryCorpus::<BytesInput, _>::new(&rand);
|
||||||
let testcase = Testcase::new(BytesInput::new(vec![0; 4])).into();
|
let testcase = Testcase::new(BytesInput::new(vec![0; 4])).into();
|
||||||
corpus.add(testcase);
|
corpus.add(testcase);
|
||||||
let executor: Rc<RefCell<InMemoryExecutor<BytesInput>>> = InMemoryExecutor::new(harness).into();
|
let executor: Rc<RefCell<InMemoryExecutor<BytesInput>>> =
|
||||||
|
InMemoryExecutor::new(harness).into();
|
||||||
let mut engine = DefaultEngine::new();
|
let mut engine = DefaultEngine::new();
|
||||||
let mut mutator = DefaultScheduledMutator::new(&rand);
|
let mut mutator = DefaultScheduledMutator::new(&rand);
|
||||||
mutator.add_mutation(mutation_bitflip);
|
mutator.add_mutation(mutation_bitflip);
|
||||||
|
@ -98,7 +98,6 @@ where
|
|||||||
harness: harness_fn,
|
harness: harness_fn,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
|
@ -2,8 +2,8 @@ extern crate alloc;
|
|||||||
|
|
||||||
use core::convert::From;
|
use core::convert::From;
|
||||||
|
|
||||||
use core::cell::RefCell;
|
|
||||||
use alloc::rc::Rc;
|
use alloc::rc::Rc;
|
||||||
|
use core::cell::RefCell;
|
||||||
|
|
||||||
use crate::inputs::{HasBytesVec, HasTargetBytes, Input};
|
use crate::inputs::{HasBytesVec, HasTargetBytes, Input};
|
||||||
use crate::AflError;
|
use crate::AflError;
|
||||||
@ -31,7 +31,6 @@ impl Into<Rc<RefCell<Self>>> for BytesInput {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl HasBytesVec for BytesInput {
|
impl HasBytesVec for BytesInput {
|
||||||
fn bytes(&self) -> &Vec<u8> {
|
fn bytes(&self) -> &Vec<u8> {
|
||||||
&self.bytes
|
&self.bytes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user