Documentation ¶
Index ¶
- type Backend
- func (_m *Backend) Call(method string, path string, key string, params stripe.ParamsContainer, ...) error
- func (_m *Backend) CallMultipart(method string, path string, key string, boundary string, body *bytes.Buffer, ...) error
- func (_m *Backend) CallRaw(method string, path string, key string, body *form.Values, ...) error
- func (_m *Backend) CallStreaming(method string, path string, key string, params stripe.ParamsContainer, ...) error
- func (_m *Backend) EXPECT() *Backend_Expecter
- func (_m *Backend) SetMaxNetworkRetries(maxNetworkRetries int64)
- type Backend_CallMultipart_Call
- type Backend_CallRaw_Call
- func (_c *Backend_CallRaw_Call) Return(_a0 error) *Backend_CallRaw_Call
- func (_c *Backend_CallRaw_Call) Run(run func(method string, path string, key string, body *form.Values, ...)) *Backend_CallRaw_Call
- func (_c *Backend_CallRaw_Call) RunAndReturn(run func(string, string, string, *form.Values, *stripe.Params, ...) error) *Backend_CallRaw_Call
- type Backend_CallStreaming_Call
- func (_c *Backend_CallStreaming_Call) Return(_a0 error) *Backend_CallStreaming_Call
- func (_c *Backend_CallStreaming_Call) Run(...) *Backend_CallStreaming_Call
- func (_c *Backend_CallStreaming_Call) RunAndReturn(run func(string, string, string, stripe.ParamsContainer, ...) error) *Backend_CallStreaming_Call
- type Backend_Call_Call
- type Backend_Expecter
- func (_e *Backend_Expecter) Call(method interface{}, path interface{}, key interface{}, params interface{}, ...) *Backend_Call_Call
- func (_e *Backend_Expecter) CallMultipart(method interface{}, path interface{}, key interface{}, boundary interface{}, ...) *Backend_CallMultipart_Call
- func (_e *Backend_Expecter) CallRaw(method interface{}, path interface{}, key interface{}, body interface{}, ...) *Backend_CallRaw_Call
- func (_e *Backend_Expecter) CallStreaming(method interface{}, path interface{}, key interface{}, params interface{}, ...) *Backend_CallStreaming_Call
- func (_e *Backend_Expecter) SetMaxNetworkRetries(maxNetworkRetries interface{}) *Backend_SetMaxNetworkRetries_Call
- type Backend_SetMaxNetworkRetries_Call
- func (_c *Backend_SetMaxNetworkRetries_Call) Return() *Backend_SetMaxNetworkRetries_Call
- func (_c *Backend_SetMaxNetworkRetries_Call) Run(run func(maxNetworkRetries int64)) *Backend_SetMaxNetworkRetries_Call
- func (_c *Backend_SetMaxNetworkRetries_Call) RunAndReturn(run func(int64)) *Backend_SetMaxNetworkRetries_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend is an autogenerated mock type for the Backend type
func NewBackend ¶
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 ¶
SetMaxNetworkRetries provides a mock function with given fields: maxNetworkRetries
type Backend_CallMultipart_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 (_c *Backend_CallMultipart_Call) Return(_a0 error) *Backend_CallMultipart_Call
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 ¶
func (_c *Backend_CallMultipart_Call) RunAndReturn(run func(string, string, string, string, *bytes.Buffer, *stripe.Params, stripe.LastResponseSetter) error) *Backend_CallMultipart_Call
type Backend_CallRaw_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 (_c *Backend_CallRaw_Call) Return(_a0 error) *Backend_CallRaw_Call
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 ¶
func (_c *Backend_CallRaw_Call) RunAndReturn(run func(string, string, string, *form.Values, *stripe.Params, stripe.LastResponseSetter) error) *Backend_CallRaw_Call
type Backend_CallStreaming_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 (_c *Backend_CallStreaming_Call) Return(_a0 error) *Backend_CallStreaming_Call
func (*Backend_CallStreaming_Call) Run ¶
func (_c *Backend_CallStreaming_Call) Run(run func(method string, path string, key string, params stripe.ParamsContainer, v stripe.StreamingLastResponseSetter)) *Backend_CallStreaming_Call
func (*Backend_CallStreaming_Call) RunAndReturn ¶
func (_c *Backend_CallStreaming_Call) RunAndReturn(run func(string, string, string, stripe.ParamsContainer, stripe.StreamingLastResponseSetter) error) *Backend_CallStreaming_Call
type Backend_Call_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 ¶
func (_c *Backend_Call_Call) RunAndReturn(run func(string, string, string, stripe.ParamsContainer, stripe.LastResponseSetter) error) *Backend_Call_Call
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 ¶
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 (_c *Backend_SetMaxNetworkRetries_Call) Return() *Backend_SetMaxNetworkRetries_Call
func (*Backend_SetMaxNetworkRetries_Call) Run ¶
func (_c *Backend_SetMaxNetworkRetries_Call) Run(run func(maxNetworkRetries int64)) *Backend_SetMaxNetworkRetries_Call
func (*Backend_SetMaxNetworkRetries_Call) RunAndReturn ¶
func (_c *Backend_SetMaxNetworkRetries_Call) RunAndReturn(run func(int64)) *Backend_SetMaxNetworkRetries_Call