()
| 833 | |
| 834 | #[tokio::test] |
| 835 | async fn test_read_missing_field() { |
| 836 | let sandbox_path = with_sandbox("read_missing"); |
| 837 | |
| 838 | let executor = ToolExecutor::new(sandbox_path); |
| 839 | |
| 840 | let call = ToolCall { |
| 841 | tool: ToolName::ReadFile, |
| 842 | input: serde_json::json!({ "wrong_field": "value" }), |
| 843 | }; |
| 844 | let result = executor.execute(call).await; |
| 845 | assert!(result.is_error); |
| 846 | assert!(result.output.contains("Missing 'path' field")); |
| 847 | |
| 848 | cleanup("read_missing"); |
| 849 | } |
| 850 | |
| 851 | // ── List Directory ──────────────────────────────────────────────────────── |
| 852 |
nothing calls this directly
no test coverage detected