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

Function test_read_missing_param

core/src/tools/builtin/read.rs:183–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181
182 #[tokio::test]
183 async fn test_read_missing_param() {
184 let tool = ReadTool;
185 let ctx = ToolContext::new(PathBuf::from("/tmp"));
186 let result = tool.execute(&serde_json::json!({}), &ctx).await.unwrap();
187
188 assert!(!result.success);
189 assert!(result.content.contains("file_path"));
190 }
191
192 #[test]
193 fn test_read_schema_is_canonical() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected