MCPcopy Index your code
hub / github.com/AI45Lab/Code / fans_out_in_input_order

Function fans_out_in_input_order

core/src/orchestration/executor.rs:251–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249
250 #[tokio::test]
251 async fn fans_out_in_input_order() {
252 let exec: Arc<dyn AgentExecutor> = Arc::new(MockExecutor::new(8));
253 let specs = vec![spec("a", "explore"), spec("b", "review"), spec("c", "plan")];
254 let out = execute_steps_parallel(exec, specs, None).await;
255 assert_eq!(
256 out.iter().map(|o| o.task_id.as_str()).collect::<Vec<_>>(),
257 vec!["a", "b", "c"],
258 "results preserve input order"
259 );
260 assert!(out.iter().all(|o| o.success));
261 assert_eq!(out[0].output, "ran: prompt-a");
262 }
263
264 #[tokio::test]
265 async fn respects_concurrency_hint() {

Callers

nothing calls this directly

Calls 1

execute_steps_parallelFunction · 0.85

Tested by

no test coverage detected