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

Function test_registry_execute_unknown

core/src/tools/registry.rs:418–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

416
417 #[tokio::test]
418 async fn test_registry_execute_unknown() {
419 let registry = ToolRegistry::new(PathBuf::from("/tmp"));
420
421 let result = registry
422 .execute("unknown", &serde_json::json!({}))
423 .await
424 .unwrap();
425 assert_eq!(result.exit_code, 1);
426 assert!(result.output.contains("Unknown tool"));
427 }
428
429 #[tokio::test]
430 async fn test_registry_execute_with_context_success() {

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected