()
| 596 | |
| 597 | #[tokio::test] |
| 598 | async fn test_registry_execute_raw_success() { |
| 599 | let registry = ToolRegistry::new(PathBuf::from("/tmp")); |
| 600 | registry.register(Arc::new(MockTool { |
| 601 | name: "raw_test".to_string(), |
| 602 | })); |
| 603 | |
| 604 | let output = registry |
| 605 | .execute_raw("raw_test", &serde_json::json!({})) |
| 606 | .await |
| 607 | .unwrap(); |
| 608 | assert!(output.is_some()); |
| 609 | let output = output.unwrap(); |
| 610 | assert!(output.success); |
| 611 | assert_eq!(output.content, "mock output"); |
| 612 | } |
| 613 | |
| 614 | #[tokio::test] |
| 615 | async fn test_registry_execute_raw_stores_truncated_artifact() { |
nothing calls this directly
no test coverage detected