internal

package
v0.0.0-...-dad8e04 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetCalls

func ResetCalls(calls ...*mock.Call)

Types

type MockBatchRequest

type MockBatchRequest struct {
	mock.Mock
}

func (*MockBatchRequest) AddRequest

func (m *MockBatchRequest) AddRequest(req internal.RequestInformation, flag bool) error

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) GetBaseURL

func (c *MockClient) GetBaseURL() string

func (*MockClient) Send

func (c *MockClient) Send(requestInfo core.IRequestInformation, errorMapping core.ErrorMapping) (*http.Response, error)

func (*MockClient) SendWithContext

func (c *MockClient) SendWithContext(ctx context.Context, requestInfo core.IRequestInformation, errorMapping core.ErrorMapping) (*http.Response, error)

type MockRequestBuilder

type MockRequestBuilder struct {
	mock.Mock
}

func (*MockRequestBuilder) SendPost3

func (m *MockRequestBuilder) SendPost3(config *core.RequestConfiguration) error

type RequestBuilder

type RequestBuilder interface {
	SendPost3(config *core.RequestConfiguration) error
}

type Test

type Test[T any] struct {
	Title string
	// Setup to make needed modifications for a specific test
	Setup func()
	// Cleanup to undo changes do to reusable items
	Cleanup  func()
	Input    interface{}
	Expected T
	//shouldErr   bool
	ExpectedErr error
}

Jump to

Keyboard shortcuts

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