testutil

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil contains shared httptest helpers used by the SDK's own unit tests. Not exported — internal/ keeps it out of the public API surface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSServer

func NewTLSServer(handler http.HandlerFunc) *httptest.Server

NewTLSServer wraps httptest.NewTLSServer with the supplied handler. The returned server's Client() trusts the test certificate, so SDK tests can WithHTTPClient(server.Client()) and reach an https:// URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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