(session_id: &str, working_dir: Option<std::path::PathBuf>)
| 40 | } |
| 41 | |
| 42 | fn create_test_context(session_id: &str, working_dir: Option<std::path::PathBuf>) -> ToolContext { |
| 43 | ToolContext { |
| 44 | session_id: session_id.to_string(), |
| 45 | message_id: "test-message".to_string(), |
| 46 | tool_call_id: "test-tool-call".to_string(), |
| 47 | working_dir, |
| 48 | stdin_request_tx: None, |
| 49 | graceful_shutdown_signal: None, |
| 50 | execution_mode: crate::tool::ToolExecutionMode::Direct, |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | fn create_repo_fixture() -> tempfile::TempDir { |
| 55 | let temp = tempfile::TempDir::new().expect("temp repo"); |
no outgoing calls
no test coverage detected