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

Function test_registry_definitions

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

Source from the content-addressed store, hash-verified

385
386 #[test]
387 fn test_registry_definitions() {
388 let registry = ToolRegistry::new(PathBuf::from("/tmp"));
389
390 registry.register(Arc::new(MockTool {
391 name: "tool1".to_string(),
392 }));
393 registry.register(Arc::new(MockTool {
394 name: "tool2".to_string(),
395 }));
396
397 let definitions = registry.definitions();
398 assert_eq!(definitions.len(), 2);
399 }
400
401 #[tokio::test]
402 async fn test_registry_execute() {

Callers

nothing calls this directly

Calls 2

registerMethod · 0.45
definitionsMethod · 0.45

Tested by

no test coverage detected