testing

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockHTTPClient

func MockHTTPClient(t testing.TB, routes map[string]string,
	opts ...MockHTTPClientOption) func()

MockHTTPClient is mocked http client

Types

type MockHTTPClientOption

type MockHTTPClientOption func(*mockHTTPClientOptions)

MockHTTPClientOption is mock for http client for tests

func IgnoreUntouchedURLs

func IgnoreUntouchedURLs() MockHTTPClientOption

IgnoreUntouchedURLs is option to ignore unused urls

Jump to

Keyboard shortcuts

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