mocks

package
v0.28.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Backend) Call

func (_m *Backend) Call(method string, path string, key string, params stripe.ParamsContainer, v stripe.LastResponseSetter) error

Call provides a mock function with given fields: method, path, key, params, v

func (*Backend) CallMultipart

func (_m *Backend) CallMultipart(method string, path string, key string, boundary string, body *bytes.Buffer, params *stripe.Params, v stripe.LastResponseSetter) error

CallMultipart provides a mock function with given fields: method, path, key, boundary, body, params, v

func (*Backend) CallRaw

func (_m *Backend) CallRaw(method string, path string, key string, body *form.Values, params *stripe.Params, v stripe.LastResponseSetter) error

CallRaw provides a mock function with given fields: method, path, key, body, params, v

func (*Backend) CallStreaming

func (_m *Backend) CallStreaming(method string, path string, key string, params stripe.ParamsContainer, v stripe.StreamingLastResponseSetter) error

CallStreaming provides a mock function with given fields: method, path, key, params, v

func (*Backend) EXPECT

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) SetMaxNetworkRetries

func (_m *Backend) SetMaxNetworkRetries(maxNetworkRetries int64)

SetMaxNetworkRetries provides a mock function with given fields: maxNetworkRetries

type Backend_CallMultipart_Call

type Backend_CallMultipart_Call struct {
	*mock.Call
}

Backend_CallMultipart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallMultipart'

func (*Backend_CallMultipart_Call) Return

func (*Backend_CallMultipart_Call) Run

func (_c *Backend_CallMultipart_Call) Run(run func(method string, path string, key string, boundary string, body *bytes.Buffer, params *stripe.Params, v stripe.LastResponseSetter)) *Backend_CallMultipart_Call

func (*Backend_CallMultipart_Call) RunAndReturn

type Backend_CallRaw_Call

type Backend_CallRaw_Call struct {
	*mock.Call
}

Backend_CallRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallRaw'

func (*Backend_CallRaw_Call) Return

func (*Backend_CallRaw_Call) Run

func (_c *Backend_CallRaw_Call) Run(run func(method string, path string, key string, body *form.Values, params *stripe.Params, v stripe.LastResponseSetter)) *Backend_CallRaw_Call

func (*Backend_CallRaw_Call) RunAndReturn

type Backend_CallStreaming_Call

type Backend_CallStreaming_Call struct {
	*mock.Call
}

Backend_CallStreaming_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallStreaming'

func (*Backend_CallStreaming_Call) Return

func (*Backend_CallStreaming_Call) Run

type Backend_Call_Call

type Backend_Call_Call struct {
	*mock.Call
}

Backend_Call_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Call'

func (*Backend_Call_Call) Return

func (_c *Backend_Call_Call) Return(_a0 error) *Backend_Call_Call

func (*Backend_Call_Call) Run

func (_c *Backend_Call_Call) Run(run func(method string, path string, key string, params stripe.ParamsContainer, v stripe.LastResponseSetter)) *Backend_Call_Call

func (*Backend_Call_Call) RunAndReturn

type Backend_Expecter

type Backend_Expecter struct {
	// contains filtered or unexported fields
}

func (*Backend_Expecter) Call

func (_e *Backend_Expecter) Call(method interface{}, path interface{}, key interface{}, params interface{}, v interface{}) *Backend_Call_Call

Call is a helper method to define mock.On call

  • method string
  • path string
  • key string
  • params stripe.ParamsContainer
  • v stripe.LastResponseSetter

func (*Backend_Expecter) CallMultipart

func (_e *Backend_Expecter) CallMultipart(method interface{}, path interface{}, key interface{}, boundary interface{}, body interface{}, params interface{}, v interface{}) *Backend_CallMultipart_Call

CallMultipart is a helper method to define mock.On call

  • method string
  • path string
  • key string
  • boundary string
  • body *bytes.Buffer
  • params *stripe.Params
  • v stripe.LastResponseSetter

func (*Backend_Expecter) CallRaw

func (_e *Backend_Expecter) CallRaw(method interface{}, path interface{}, key interface{}, body interface{}, params interface{}, v interface{}) *Backend_CallRaw_Call

CallRaw is a helper method to define mock.On call

  • method string
  • path string
  • key string
  • body *form.Values
  • params *stripe.Params
  • v stripe.LastResponseSetter

func (*Backend_Expecter) CallStreaming

func (_e *Backend_Expecter) CallStreaming(method interface{}, path interface{}, key interface{}, params interface{}, v interface{}) *Backend_CallStreaming_Call

CallStreaming is a helper method to define mock.On call

  • method string
  • path string
  • key string
  • params stripe.ParamsContainer
  • v stripe.StreamingLastResponseSetter

func (*Backend_Expecter) SetMaxNetworkRetries

func (_e *Backend_Expecter) SetMaxNetworkRetries(maxNetworkRetries interface{}) *Backend_SetMaxNetworkRetries_Call

SetMaxNetworkRetries is a helper method to define mock.On call

  • maxNetworkRetries int64

type Backend_SetMaxNetworkRetries_Call

type Backend_SetMaxNetworkRetries_Call struct {
	*mock.Call
}

Backend_SetMaxNetworkRetries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMaxNetworkRetries'

func (*Backend_SetMaxNetworkRetries_Call) Return

func (*Backend_SetMaxNetworkRetries_Call) Run

func (_c *Backend_SetMaxNetworkRetries_Call) Run(run func(maxNetworkRetries int64)) *Backend_SetMaxNetworkRetries_Call

func (*Backend_SetMaxNetworkRetries_Call) RunAndReturn

Jump to

Keyboard shortcuts

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