()
| 1638 | |
| 1639 | #[test] |
| 1640 | fn test_transform_without_constraint() -> Result<()> { |
| 1641 | crate::config::Config::init_test("libjpeg-turbo"); |
| 1642 | let deopt = Deopt::new("libjpeg-turbo".to_string())?; |
| 1643 | let test_file: PathBuf = [ |
| 1644 | Deopt::get_crate_dir()?, |
| 1645 | "testsuites".into(), |
| 1646 | "new_test.cc".into(), |
| 1647 | ] |
| 1648 | .iter() |
| 1649 | .collect(); |
| 1650 | |
| 1651 | //let constraints = crate::program::infer::load_constraints(&deopt)?; |
| 1652 | let constraints = APIConstraints::new(); |
| 1653 | let changable_args = Vec::from_iter(0..100); |
| 1654 | let mut transformer = Transformer::new(&test_file, &deopt)?; |
| 1655 | transformer.transform_to_fuzzer(&constraints, changable_args)?; |
| 1656 | |
| 1657 | Ok(()) |
| 1658 | } |
| 1659 | |
| 1660 | #[test] |
| 1661 | fn test_transform_with_constraint() -> Result<()> { |
nothing calls this directly
no test coverage detected