MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_write_missing_params

Function test_write_missing_params

core/src/tools/builtin/write.rs:170–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169 #[tokio::test]
170 async fn test_write_missing_params() {
171 let tool = WriteTool;
172 let ctx = ToolContext::new(std::path::PathBuf::from("/tmp"));
173
174 let result = tool.execute(&serde_json::json!({}), &ctx).await.unwrap();
175 assert!(!result.success);
176
177 let result = tool
178 .execute(&serde_json::json!({"file_path": "x"}), &ctx)
179 .await
180 .unwrap();
181 assert!(!result.success);
182 }
183
184 #[test]
185 fn test_write_schema_is_canonical() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected