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

Function test_sanitization_for_a_program

src/execution/sanitize.rs:426–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

424
425 #[test]
426 fn test_sanitization_for_a_program() -> Result<()> {
427 crate::config::Config::init_test("cjson");
428 let deopt = Deopt::new("cjson".to_string())?;
429 //let program_path: std::path::PathBuf =
430 // [crate::Deopt::get_crate_dir()?, "testsuites", "new_test.cc"]
431 // .iter()
432 // .collect();
433 //let work_path = deopt.get_work_seed_by_id(0)?;
434 //std::fs::copy(program_path, &work_path)?;
435 let executor = Executor::new(&deopt)?;
436 let res = executor.check_program_is_correct(&deopt.get_work_seed_by_id(0)?);
437 println!("{res:?}");
438 Ok(())
439 }
440
441 #[test]
442 fn test_corpus_evoluation() -> Result<()> {

Callers

nothing calls this directly

Calls 2

get_work_seed_by_idMethod · 0.80

Tested by

no test coverage detected