testhelper

package
v2.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare added in v2.7.0

func Compare(
	t *testing.T,
	want interface{},
	got interface{},
)

Compare :

func NewServer

func NewServer(opts ...func(*http.ServeMux)) (*httptest.Server, func())

NewServer :

func NewWebsocketServer

func NewWebsocketServer(opts ...func(*http.ServeMux)) (*httptest.Server, func())

NewWebsocketServer :

func Ptr added in v2.30.0

func Ptr[T any](v T) *T

func WithHandlerOption

func WithHandlerOption(
	path, method string,
	status int,
	respBody []byte,
) func(*http.ServeMux)

WithHandlerOption :

func WithWebsocketHandlerOption

func WithWebsocketHandlerOption(
	path string,
	respBody []byte,
) func(*http.ServeMux)

WithWebsocketHandlerOption :

Types

This section is empty.

Jump to

Keyboard shortcuts

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