Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockClient ¶
NewMockClient creates a test HTTP server with automatic OAuth2 token handling and returns a configured *client.Client pointed at the mock server. The provided handler receives all non-token requests. The server is automatically closed when the test completes.
func RespondJSON ¶
func RespondJSON(w http.ResponseWriter, status int, body any)
RespondJSON writes a JSON response with the given status code and body.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.