testutil

package
v0.0.0-...-013f07f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package testutil provides mocks and harness helpers for MCP/GitLab tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MCPConnect

func MCPConnect(t *testing.T, srv *mcp.Server) *mcp.ClientSession

MCPConnect connects an in-memory MCP client to the given server.

func NewGitLabClient

func NewGitLabClient(t *testing.T, h http.Handler) (*gitlab.Client, *httptest.Server)

NewGitLabClient returns a GitLab API client pointed at a test HTTP server. basePath should normally be "/api/v4" relative to the test server root.

func ToolNames

func ToolNames(t *testing.T, cs *mcp.ClientSession) map[string]bool

ToolNames returns tool names from a list_tools call.

Types

This section is empty.

Jump to

Keyboard shortcuts

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