()
| 4409 | #[tokio::test] |
| 4410 | #[cfg(unix)] |
| 4411 | async fn test_subscribe_flow() { |
| 4412 | let mut os = Os::new().await.unwrap(); |
| 4413 | os.client.set_mock_output(serde_json::Value::Array(vec![])); |
| 4414 | let agents = get_test_agents(&os).await; |
| 4415 | |
| 4416 | let tool_manager = ToolManager::default(); |
| 4417 | let tool_config = serde_json::from_str::<HashMap<String, ToolSpec>>(include_str!("tools/tool_index.json")) |
| 4418 | .expect("Tools failed to load"); |
| 4419 | ChatSession::new( |
| 4420 | &mut os, |
| 4421 | "fake_conv_id", |
| 4422 | agents, |
| 4423 | None, |
| 4424 | InputSource::new_mock(vec!["/subscribe".to_string(), "y".to_string(), "/quit".to_string()]), |
| 4425 | false, |
| 4426 | || Some(80), |
| 4427 | tool_manager, |
| 4428 | None, |
| 4429 | tool_config, |
| 4430 | true, |
| 4431 | false, |
| 4432 | None, |
| 4433 | ) |
| 4434 | .await |
| 4435 | .unwrap() |
| 4436 | .spawn(&mut os) |
| 4437 | .await |
| 4438 | .unwrap(); |
| 4439 | } |
| 4440 | |
| 4441 | // Integration test for PreToolUse hook functionality. |
| 4442 | // |
nothing calls this directly
no test coverage detected