(session_id: &str, tool: &str, args: serde_json::Value)
| 245 | use crate::hooks::events::PreToolUseEvent; |
| 246 | |
| 247 | fn make_pre_tool_event(session_id: &str, tool: &str, args: serde_json::Value) -> HookEvent { |
| 248 | HookEvent::PreToolUse(PreToolUseEvent { |
| 249 | session_id: session_id.to_string(), |
| 250 | tool: tool.to_string(), |
| 251 | args, |
| 252 | working_directory: "/workspace".to_string(), |
| 253 | recent_tools: vec![], |
| 254 | }) |
| 255 | } |
| 256 | |
| 257 | #[test] |
| 258 | fn test_empty_matcher_matches_all() { |
no outgoing calls