MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_missing_command

Function test_missing_command

core/src/tools/builtin/git.rs:566–573  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected