testutil

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestLogger

func GetTestLogger() (context.Context, error)

GetTestLogger returns a context with a debug logger configured. This is a compatibility wrapper around TestContext for tests that expect an error return.

func MockNullifyClient

func MockNullifyClient(handler http.Handler) (*client.NullifyClient, *httptest.Server)

MockNullifyClient creates a NullifyClient that talks to a test HTTP server. The provided handler processes all requests.

func TestContext

func TestContext() context.Context

TestContext returns a context with a debug logger configured.

Types

This section is empty.

Jump to

Keyboard shortcuts

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