MCPcopy Index your code
hub / github.com/enowdev/enowX-Coder / test_read_missing_field

Function test_read_missing_field

src-tauri/src/tools/executor.rs:835–849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

with_sandboxFunction · 0.85
cleanupFunction · 0.85
executeMethod · 0.80

Tested by

no test coverage detected