()
| 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() { |