()
| 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<()> { |
nothing calls this directly
no test coverage detected