Skip to content

Commit

Permalink
Update generators/mod.rs
Browse files Browse the repository at this point in the history
Removed unit tests after dev branch merge after RAND generators were lower capped
  • Loading branch information
CowBoy4mH3LL authored Nov 8, 2024
1 parent e2d6977 commit 886eff6
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions libafl/src/generators/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,33 +129,3 @@ impl RandPrintablesGenerator {
Self { min_size, max_size }
}
}


#[cfg(test)]
mod test{
use core::num::NonZeroUsize;

use crate::{generators::Generator, inputs::NopInput, state::NopState};

use super::RandBytesGenerator;

#[test]
fn test_bytes(){
let mut dummy_state: NopState<NopInput> = NopState::new();
let mut gen = RandBytesGenerator::new(NonZeroUsize::new(2).unwrap(), NonZeroUsize::new(3).unwrap());
for _i in 1..10 {
println!("{:?}",gen.generate(&mut dummy_state));
}
}

#[test]
fn test_printables(){
let mut dummy_state: NopState<NopInput> = NopState::new();
let mut gen = RandBytesGenerator::new(NonZeroUsize::new(1).unwrap(), NonZeroUsize::new(1).unwrap());
for _i in 1..10 {
println!("{:?}",gen.generate(&mut dummy_state));
}
}

}

0 comments on commit 886eff6

Please sign in to comment.