()
| 564 | |
| 565 | #[tokio::test] |
| 566 | async fn test_missing_command() { |
| 567 | let tool = GitTool; |
| 568 | let ctx = ToolContext::new(PathBuf::from("/tmp")); |
| 569 | let args = serde_json::json!({}); |
| 570 | let out = tool.execute(&args, &ctx).await.unwrap(); |
| 571 | assert!(!out.success); |
| 572 | assert!(out.content.contains("command parameter is required")); |
| 573 | } |
| 574 | } |