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

Function test_tool_result_to_string_image

core/src/mcp/manager.rs:632–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

tool_result_to_stringFunction · 0.85

Tested by

no test coverage detected