()
| 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() { |