MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / test_transform_lib_fuzzer

Function test_transform_lib_fuzzer

src/program/libfuzzer.rs:917–930  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

915 use super::*;
916 #[test]
917 fn test_transform_lib_fuzzer() -> Result<()> {
918 let deopt = Deopt::new("libjpeg-turbo".to_string())?;
919 Config::init_test("libjpeg-turbo");
920 let test_dir: PathBuf = [deopt.get_library_output_dir()?, "seeds".into()]
921 .iter()
922 .collect();
923 let programs = crate::deopt::utils::read_sort_dir(&test_dir)?;
924 let batch_size = programs.len() / max_cpu_count();
925 let mut lib_fuzzer = LibFuzzer::new(programs, batch_size, deopt, true);
926 lib_fuzzer.transform()?;
927 lib_fuzzer.synthesis()?;
928 lib_fuzzer.compile()?;
929 Ok(())
930 }
931
932 #[test]
933 fn test_sanitize_crash() -> Result<()> {

Callers

nothing calls this directly

Calls 6

read_sort_dirFunction · 0.85
max_cpu_countFunction · 0.85
transformMethod · 0.80
synthesisMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected