From 886eff608258fda5881528fe90ee4be801e59bfd Mon Sep 17 00:00:00 2001 From: "Subhojeet Mukherjee, PhD" <57270300+CowBoy4mH3LL@users.noreply.github.com> Date: Fri, 8 Nov 2024 13:44:54 +0530 Subject: [PATCH] Update generators/mod.rs Removed unit tests after dev branch merge after RAND generators were lower capped --- libafl/src/generators/mod.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/libafl/src/generators/mod.rs b/libafl/src/generators/mod.rs index 5ecc27184a..18822f2dbe 100644 --- a/libafl/src/generators/mod.rs +++ b/libafl/src/generators/mod.rs @@ -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 = 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 = 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)); - } - } - -} -