mock

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPoller

type MockPoller struct {
	mock.Mock
}

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) 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

type MockPoller_AwaitAsyncOperation_Call struct {
	*mock.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 (*MockPoller_AwaitAsyncOperation_Call) Run

func (*MockPoller_AwaitAsyncOperation_Call) RunAndReturn

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) 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

type MockPoller_HandleCreateAsyncOperationResponse_Call struct {
	*mock.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 (*MockPoller_HandleCreateAsyncOperationResponse_Call) Run

func (*MockPoller_HandleCreateAsyncOperationResponse_Call) RunAndReturn

type MockPoller_HandleDeleteOperation_Call

type MockPoller_HandleDeleteOperation_Call struct {
	*mock.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 (*MockPoller_HandleDeleteOperation_Call) Run

func (*MockPoller_HandleDeleteOperation_Call) RunAndReturn

type MockPoller_HandleUpdateOperation_Call

type MockPoller_HandleUpdateOperation_Call struct {
	*mock.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 (*MockPoller_HandleUpdateOperation_Call) Run

func (*MockPoller_HandleUpdateOperation_Call) RunAndReturn

Jump to

Keyboard shortcuts

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