testutils

package
v1.95.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV3Client

func NewV3Client(t *testing.T, endpoint string) *v3.Client

NewV3Client returns a v3.Client with test credentials and the given endpoint.

func SetupV3Client

func SetupV3Client(t *testing.T, endpoint string)

SetupV3Client creates a v3.Client and sets it in the global state.

func WriteJSON

func WriteJSON(t *testing.T, w http.ResponseWriter, code int, v any)

WriteJSON encodes v to w as JSON, and sets the response Content-Type to application/json with the given status code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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