()
| 630 | |
| 631 | #[test] |
| 632 | fn test_tool_result_to_string_image() { |
| 633 | let result = CallToolResult { |
| 634 | content: vec![ToolContent::Image { |
| 635 | data: "base64data".to_string(), |
| 636 | mime_type: "image/png".to_string(), |
| 637 | }], |
| 638 | is_error: false, |
| 639 | }; |
| 640 | let output = tool_result_to_string(&result); |
| 641 | assert!(output.contains("[Image: image/png]")); |
| 642 | } |
| 643 | |
| 644 | #[test] |
| 645 | fn test_tool_result_to_string_resource() { |
nothing calls this directly
no test coverage detected