servertest

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package servertest provides test helpers for the server package. It isolates net/http/httptest so production binaries do not link it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestServer

func NewTestServer(srv *server.MCPServer, opts ...server.SSEOption) *httptest.Server

NewTestServer creates a test SSE server. Replaces server.NewTestServer.

func NewTestStreamableHTTPServer

func NewTestStreamableHTTPServer(srv *server.MCPServer, opts ...server.StreamableHTTPOption) *httptest.Server

NewTestStreamableHTTPServer creates a test Streamable HTTP server. Replaces server.NewTestStreamableHTTPServer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL