Documentation
¶
Index ¶
- func CreateRequest[T any](method string, endpoint string, body T) ...
- func CreateRequestWithResponse[T any](method string, endpoint string, body T) ...
- func MockResponse(endpoint string, response []byte, err error, status int) func(handlers map[string]http.HandlerFunc) error
- func SetupProviderServer(handlers map[string]http.HandlerFunc) (*httptest.Server, error)
- func SetupServer() (*httptest.Server, error)
- type TestStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRequest ¶
func CreateRequestWithResponse ¶ added in v1.2.0
func MockResponse ¶
func SetupProviderServer ¶
func SetupServer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.