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