()
| 1003 | use super::*; |
| 1004 | #[test] |
| 1005 | fn test_concurrent_checking() -> Result<()> { |
| 1006 | crate::config::Config::init_test("cJSON"); |
| 1007 | let deopt = Deopt::new("cJSON".to_string())?; |
| 1008 | let executor = Executor::new(&deopt)?; |
| 1009 | |
| 1010 | let test_dir: PathBuf = [deopt.get_library_output_dir()?, "tests".into()] |
| 1011 | .iter() |
| 1012 | .collect(); |
| 1013 | let mut programs = Vec::new(); |
| 1014 | for entry in std::fs::read_dir(test_dir)? { |
| 1015 | let entry = entry?.path(); |
| 1016 | programs.push(entry); |
| 1017 | } |
| 1018 | let res = executor.concurrent_check_batch(&programs)?; |
| 1019 | assert_eq!(programs.len(), res.len()); |
| 1020 | println!("{res:#?}"); |
| 1021 | Ok(()) |
| 1022 | } |
| 1023 | } |
nothing calls this directly
no test coverage detected