(t *testing.T, res *CallToolResult)
| 1740 | } |
| 1741 | |
| 1742 | func textContent(t *testing.T, res *CallToolResult) string { |
| 1743 | t.Helper() |
| 1744 | if len(res.Content) != 1 { |
| 1745 | t.Fatalf("len(Content) = %d, want 1", len(res.Content)) |
| 1746 | } |
| 1747 | text, ok := res.Content[0].(*TextContent) |
| 1748 | if !ok { |
| 1749 | t.Fatalf("Content[0] is %T, want *TextContent", res.Content[0]) |
| 1750 | } |
| 1751 | return text.Text |
| 1752 | } |
| 1753 | |
| 1754 | func TestSessionHijackingPrevention(t *testing.T) { |
| 1755 | // This test verifies that sessions bound to a user ID cannot be accessed |
no outgoing calls
no test coverage detected
searching dependent graphs…