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

Function test_concurrent_checking

src/execution/mod.rs:1005–1022  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

pushMethod · 0.45

Tested by

no test coverage detected