testutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockAPIHandler

func MockAPIHandler() http.Handler

MockAPIHandler creates a mock API handler for testing

func NewTestHTTPClient

func NewTestHTTPClient(handler http.Handler) *http.Client

NewTestHTTPClient creates an HTTP client for testing with a mock server

func NewTestIOStreams

func NewTestIOStreams() (*iostreams.IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer)

NewTestIOStreams creates IOStreams for testing

func SetTestToken

func SetTestToken() func()

SetTestToken sets test environment token

Types

This section is empty.

Source Files

  • testutil.go

Jump to

Keyboard shortcuts

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