Documentation
¶
Overview ¶
Package clienttest provides helpers for unit tests of pkg/client and its subpackages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONHandler ¶
func JSONHandler(statusCode int, body string) http.HandlerFunc
JSONHandler returns a handler that serves a fixed JSON response.
func RunBulkInfoUpdateBadRequestUnauthorizedErrorTests ¶
func RunBulkInfoUpdateBadRequestUnauthorizedErrorTests( t *testing.T, request types.BulkInfoUpdateRQ, call func(*client.Client, context.Context, types.BulkInfoUpdateRQ) error, )
RunBulkInfoUpdateBadRequestUnauthorizedErrorTests runs shared bulk-update error tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.