()
| 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() { |
nothing calls this directly
no test coverage detected