()
| 952 | |
| 953 | #[tokio::test] |
| 954 | async fn test_search_files_invalid_regex() { |
| 955 | let sandbox_path = with_sandbox("search_invalid_regex"); |
| 956 | |
| 957 | let executor = ToolExecutor::new(sandbox_path); |
| 958 | |
| 959 | let call = ToolCall { |
| 960 | tool: ToolName::SearchFiles, |
| 961 | input: serde_json::json!({ |
| 962 | "pattern": "[invalid regex", |
| 963 | "path": "." |
| 964 | }), |
| 965 | }; |
| 966 | let result = executor.execute(call).await; |
| 967 | assert!(result.is_error); |
| 968 | assert!(result.output.contains("Invalid regex")); |
| 969 | |
| 970 | cleanup("search_invalid_regex"); |
| 971 | } |
| 972 | |
| 973 | #[tokio::test] |
| 974 | async fn test_search_files_no_matches() { |
nothing calls this directly
no test coverage detected