testutil

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPDialContext

func HTTPDialContext(t testing.TB, handler http.Handler) func(context.Context, string, string) (net.Conn, error)

HTTPDialContext serves real HTTP (including WebSocket upgrades) over net.Pipe, allowing transport tests to run without permission to bind local TCP ports.

Types

This section is empty.

Jump to

Keyboard shortcuts

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