Documentation
¶
Index ¶
- type MockPoller
- func (_mock *MockPoller) AwaitAsyncOperation(ctx context.Context, asyncOpID string) error
- func (_m *MockPoller) EXPECT() *MockPoller_Expecter
- func (_mock *MockPoller) HandleCreateAsyncOperationResponse(ctx context.Context, response async.RespWithAsyncOp, err error) error
- func (_mock *MockPoller) HandleDeleteOperation(ctx context.Context, response async.RespWithAsyncOp, err error) error
- func (_mock *MockPoller) HandleIdempotentOperation(ctx context.Context, response async.RespWithAsyncOp, err error) error
- func (_mock *MockPoller) HandleUpdateOperation(ctx context.Context, response async.RespWithAsyncOp, err error) error
- type MockPoller_AwaitAsyncOperation_Call
- func (_c *MockPoller_AwaitAsyncOperation_Call) Return(err error) *MockPoller_AwaitAsyncOperation_Call
- func (_c *MockPoller_AwaitAsyncOperation_Call) Run(run func(ctx context.Context, asyncOpID string)) *MockPoller_AwaitAsyncOperation_Call
- func (_c *MockPoller_AwaitAsyncOperation_Call) RunAndReturn(run func(ctx context.Context, asyncOpID string) error) *MockPoller_AwaitAsyncOperation_Call
- type MockPoller_Expecter
- func (_e *MockPoller_Expecter) AwaitAsyncOperation(ctx interface{}, asyncOpID interface{}) *MockPoller_AwaitAsyncOperation_Call
- func (_e *MockPoller_Expecter) HandleCreateAsyncOperationResponse(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleCreateAsyncOperationResponse_Call
- func (_e *MockPoller_Expecter) HandleDeleteOperation(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleDeleteOperation_Call
- func (_e *MockPoller_Expecter) HandleIdempotentOperation(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleIdempotentOperation_Call
- func (_e *MockPoller_Expecter) HandleUpdateOperation(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleUpdateOperation_Call
- type MockPoller_HandleCreateAsyncOperationResponse_Call
- func (_c *MockPoller_HandleCreateAsyncOperationResponse_Call) Return(err1 error) *MockPoller_HandleCreateAsyncOperationResponse_Call
- func (_c *MockPoller_HandleCreateAsyncOperationResponse_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleCreateAsyncOperationResponse_Call
- func (_c *MockPoller_HandleCreateAsyncOperationResponse_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleCreateAsyncOperationResponse_Call
- type MockPoller_HandleDeleteOperation_Call
- func (_c *MockPoller_HandleDeleteOperation_Call) Return(err1 error) *MockPoller_HandleDeleteOperation_Call
- func (_c *MockPoller_HandleDeleteOperation_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleDeleteOperation_Call
- func (_c *MockPoller_HandleDeleteOperation_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleDeleteOperation_Call
- type MockPoller_HandleIdempotentOperation_Call
- func (_c *MockPoller_HandleIdempotentOperation_Call) Return(err1 error) *MockPoller_HandleIdempotentOperation_Call
- func (_c *MockPoller_HandleIdempotentOperation_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleIdempotentOperation_Call
- func (_c *MockPoller_HandleIdempotentOperation_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleIdempotentOperation_Call
- type MockPoller_HandleUpdateOperation_Call
- func (_c *MockPoller_HandleUpdateOperation_Call) Return(err1 error) *MockPoller_HandleUpdateOperation_Call
- func (_c *MockPoller_HandleUpdateOperation_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleUpdateOperation_Call
- func (_c *MockPoller_HandleUpdateOperation_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleUpdateOperation_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPoller ¶
MockPoller is an autogenerated mock type for the Poller type
func NewMockPoller ¶
func NewMockPoller(t interface {
mock.TestingT
Cleanup(func())
}) *MockPoller
NewMockPoller creates a new instance of MockPoller. 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 (*MockPoller) AwaitAsyncOperation ¶
func (_mock *MockPoller) AwaitAsyncOperation(ctx context.Context, asyncOpID string) error
AwaitAsyncOperation provides a mock function for the type MockPoller
func (*MockPoller) EXPECT ¶
func (_m *MockPoller) EXPECT() *MockPoller_Expecter
func (*MockPoller) HandleCreateAsyncOperationResponse ¶
func (_mock *MockPoller) HandleCreateAsyncOperationResponse(ctx context.Context, response async.RespWithAsyncOp, err error) error
HandleCreateAsyncOperationResponse provides a mock function for the type MockPoller
func (*MockPoller) HandleDeleteOperation ¶
func (_mock *MockPoller) HandleDeleteOperation(ctx context.Context, response async.RespWithAsyncOp, err error) error
HandleDeleteOperation provides a mock function for the type MockPoller
func (*MockPoller) HandleIdempotentOperation ¶ added in v0.1.1
func (_mock *MockPoller) HandleIdempotentOperation(ctx context.Context, response async.RespWithAsyncOp, err error) error
HandleIdempotentOperation provides a mock function for the type MockPoller
func (*MockPoller) HandleUpdateOperation ¶
func (_mock *MockPoller) HandleUpdateOperation(ctx context.Context, response async.RespWithAsyncOp, err error) error
HandleUpdateOperation provides a mock function for the type MockPoller
type MockPoller_AwaitAsyncOperation_Call ¶
MockPoller_AwaitAsyncOperation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AwaitAsyncOperation'
func (*MockPoller_AwaitAsyncOperation_Call) Return ¶
func (_c *MockPoller_AwaitAsyncOperation_Call) Return(err error) *MockPoller_AwaitAsyncOperation_Call
func (*MockPoller_AwaitAsyncOperation_Call) Run ¶
func (_c *MockPoller_AwaitAsyncOperation_Call) Run(run func(ctx context.Context, asyncOpID string)) *MockPoller_AwaitAsyncOperation_Call
func (*MockPoller_AwaitAsyncOperation_Call) RunAndReturn ¶
func (_c *MockPoller_AwaitAsyncOperation_Call) RunAndReturn(run func(ctx context.Context, asyncOpID string) error) *MockPoller_AwaitAsyncOperation_Call
type MockPoller_Expecter ¶
type MockPoller_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPoller_Expecter) AwaitAsyncOperation ¶
func (_e *MockPoller_Expecter) AwaitAsyncOperation(ctx interface{}, asyncOpID interface{}) *MockPoller_AwaitAsyncOperation_Call
AwaitAsyncOperation is a helper method to define mock.On call
- ctx context.Context
- asyncOpID string
func (*MockPoller_Expecter) HandleCreateAsyncOperationResponse ¶
func (_e *MockPoller_Expecter) HandleCreateAsyncOperationResponse(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleCreateAsyncOperationResponse_Call
HandleCreateAsyncOperationResponse is a helper method to define mock.On call
- ctx context.Context
- response async.RespWithAsyncOp
- err error
func (*MockPoller_Expecter) HandleDeleteOperation ¶
func (_e *MockPoller_Expecter) HandleDeleteOperation(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleDeleteOperation_Call
HandleDeleteOperation is a helper method to define mock.On call
- ctx context.Context
- response async.RespWithAsyncOp
- err error
func (*MockPoller_Expecter) HandleIdempotentOperation ¶ added in v0.1.1
func (_e *MockPoller_Expecter) HandleIdempotentOperation(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleIdempotentOperation_Call
HandleIdempotentOperation is a helper method to define mock.On call
- ctx context.Context
- response async.RespWithAsyncOp
- err error
func (*MockPoller_Expecter) HandleUpdateOperation ¶
func (_e *MockPoller_Expecter) HandleUpdateOperation(ctx interface{}, response interface{}, err interface{}) *MockPoller_HandleUpdateOperation_Call
HandleUpdateOperation is a helper method to define mock.On call
- ctx context.Context
- response async.RespWithAsyncOp
- err error
type MockPoller_HandleCreateAsyncOperationResponse_Call ¶
MockPoller_HandleCreateAsyncOperationResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleCreateAsyncOperationResponse'
func (*MockPoller_HandleCreateAsyncOperationResponse_Call) Return ¶
func (_c *MockPoller_HandleCreateAsyncOperationResponse_Call) Return(err1 error) *MockPoller_HandleCreateAsyncOperationResponse_Call
func (*MockPoller_HandleCreateAsyncOperationResponse_Call) Run ¶
func (_c *MockPoller_HandleCreateAsyncOperationResponse_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleCreateAsyncOperationResponse_Call
func (*MockPoller_HandleCreateAsyncOperationResponse_Call) RunAndReturn ¶
func (_c *MockPoller_HandleCreateAsyncOperationResponse_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleCreateAsyncOperationResponse_Call
type MockPoller_HandleDeleteOperation_Call ¶
MockPoller_HandleDeleteOperation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleDeleteOperation'
func (*MockPoller_HandleDeleteOperation_Call) Return ¶
func (_c *MockPoller_HandleDeleteOperation_Call) Return(err1 error) *MockPoller_HandleDeleteOperation_Call
func (*MockPoller_HandleDeleteOperation_Call) Run ¶
func (_c *MockPoller_HandleDeleteOperation_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleDeleteOperation_Call
func (*MockPoller_HandleDeleteOperation_Call) RunAndReturn ¶
func (_c *MockPoller_HandleDeleteOperation_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleDeleteOperation_Call
type MockPoller_HandleIdempotentOperation_Call ¶ added in v0.1.1
MockPoller_HandleIdempotentOperation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleIdempotentOperation'
func (*MockPoller_HandleIdempotentOperation_Call) Return ¶ added in v0.1.1
func (_c *MockPoller_HandleIdempotentOperation_Call) Return(err1 error) *MockPoller_HandleIdempotentOperation_Call
func (*MockPoller_HandleIdempotentOperation_Call) Run ¶ added in v0.1.1
func (_c *MockPoller_HandleIdempotentOperation_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleIdempotentOperation_Call
func (*MockPoller_HandleIdempotentOperation_Call) RunAndReturn ¶ added in v0.1.1
func (_c *MockPoller_HandleIdempotentOperation_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleIdempotentOperation_Call
type MockPoller_HandleUpdateOperation_Call ¶
MockPoller_HandleUpdateOperation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleUpdateOperation'
func (*MockPoller_HandleUpdateOperation_Call) Return ¶
func (_c *MockPoller_HandleUpdateOperation_Call) Return(err1 error) *MockPoller_HandleUpdateOperation_Call
func (*MockPoller_HandleUpdateOperation_Call) Run ¶
func (_c *MockPoller_HandleUpdateOperation_Call) Run(run func(ctx context.Context, response async.RespWithAsyncOp, err error)) *MockPoller_HandleUpdateOperation_Call
func (*MockPoller_HandleUpdateOperation_Call) RunAndReturn ¶
func (_c *MockPoller_HandleUpdateOperation_Call) RunAndReturn(run func(ctx context.Context, response async.RespWithAsyncOp, err error) error) *MockPoller_HandleUpdateOperation_Call