testutils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHTTPDoer

type MockHTTPDoer struct {
	SubmitMultipartResult []submitMultipartPayload
	SubmitJSONResult      []submitJSONPayload
}

MockHTTPDoer.

func NewMockHTTPDoer

func NewMockHTTPDoer() *MockHTTPDoer

func (*MockHTTPDoer) SubmitJSON

func (c *MockHTTPDoer) SubmitJSON(method, endpoint string, body any) error

func (*MockHTTPDoer) SubmitMultipart

func (c *MockHTTPDoer) SubmitMultipart(
	method,
	endpoint string,
	fields map[string]string,
	files []httpclient.MultipartFile,
) error

Jump to

Keyboard shortcuts

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