simplify mutator calls
This commit is contained in:
parent
3a74f5335a
commit
5aa2202d04
@ -378,14 +378,15 @@ where
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::corpus::Corpus;
|
|
||||||
use crate::corpus::Testcase;
|
|
||||||
use crate::corpus::{OnDiskCorpus, QueueCorpus};
|
|
||||||
use crate::inputs::bytes::BytesInput;
|
|
||||||
use crate::utils::StdRand;
|
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
use crate::{
|
||||||
|
corpus::{Corpus, OnDiskCorpus, QueueCorpus, Testcase},
|
||||||
|
inputs::bytes::BytesInput,
|
||||||
|
utils::StdRand,
|
||||||
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_queuecorpus() {
|
fn test_queuecorpus() {
|
||||||
let mut rand = StdRand::new(0);
|
let mut rand = StdRand::new(0);
|
||||||
|
@ -460,8 +460,7 @@ pub fn mutation_bytesexpand<M, C, I, R>(
|
|||||||
input: &mut I,
|
input: &mut I,
|
||||||
) -> Result<MutationResult, AflError>
|
) -> Result<MutationResult, AflError>
|
||||||
where
|
where
|
||||||
M: Mutator<C, I, R> + HasMaxSize,
|
M: HasMaxSize,
|
||||||
C: Corpus<I, R>,
|
|
||||||
I: Input + HasBytesVec,
|
I: Input + HasBytesVec,
|
||||||
R: Rand,
|
R: Rand,
|
||||||
{
|
{
|
||||||
@ -485,8 +484,7 @@ pub fn mutation_bytesinsert<M, C, I, R>(
|
|||||||
input: &mut I,
|
input: &mut I,
|
||||||
) -> Result<MutationResult, AflError>
|
) -> Result<MutationResult, AflError>
|
||||||
where
|
where
|
||||||
M: Mutator<C, I, R> + HasMaxSize,
|
M: HasMaxSize,
|
||||||
C: Corpus<I, R>,
|
|
||||||
I: Input + HasBytesVec,
|
I: Input + HasBytesVec,
|
||||||
R: Rand,
|
R: Rand,
|
||||||
{
|
{
|
||||||
@ -512,8 +510,7 @@ pub fn mutation_bytesrandinsert<M, C, I, R>(
|
|||||||
input: &mut I,
|
input: &mut I,
|
||||||
) -> Result<MutationResult, AflError>
|
) -> Result<MutationResult, AflError>
|
||||||
where
|
where
|
||||||
M: Mutator<C, I, R> + HasMaxSize,
|
M: HasMaxSize,
|
||||||
C: Corpus<I, R>,
|
|
||||||
I: Input + HasBytesVec,
|
I: Input + HasBytesVec,
|
||||||
R: Rand,
|
R: Rand,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user