mock

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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 any, asyncOpID any) *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 any, response any, err any) *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 any, response any, err any) *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 any, response any, err any) *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 any, response any, err any) *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_HandleIdempotentOperation_Call added in v0.1.1

type MockPoller_HandleIdempotentOperation_Call struct {
	*mock.Call
}

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 (*MockPoller_HandleIdempotentOperation_Call) Run added in v0.1.1

func (*MockPoller_HandleIdempotentOperation_Call) RunAndReturn added in v0.1.1

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