mocks

package
v0.0.0-...-e0b593a Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatorClient

type OperatorClient struct {
	mock.Mock
}

OperatorClient is an autogenerated mock type for the OperatorClient type

func NewOperatorClient

func NewOperatorClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperatorClient

NewOperatorClient creates a new instance of OperatorClient. 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 (*OperatorClient) Call

func (_m *OperatorClient) Call(_a0 context.Context, _a1 *jetflow.Request) ([]byte, error)

Call provides a mock function with given fields: _a0, _a1

func (*OperatorClient) EXPECT

func (*OperatorClient) Find

func (_m *OperatorClient) Find(ctx context.Context, id string, operator interface{}) error

Find provides a mock function with given fields: ctx, id, operator

type OperatorClient_Call_Call

type OperatorClient_Call_Call struct {
	*mock.Call
}

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

func (*OperatorClient_Call_Call) Return

func (*OperatorClient_Call_Call) Run

func (*OperatorClient_Call_Call) RunAndReturn

type OperatorClient_Expecter

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

func (*OperatorClient_Expecter) Call

func (_e *OperatorClient_Expecter) Call(_a0 interface{}, _a1 interface{}) *OperatorClient_Call_Call

Call is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *jetflow.Request

func (*OperatorClient_Expecter) Find

func (_e *OperatorClient_Expecter) Find(ctx interface{}, id interface{}, operator interface{}) *OperatorClient_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • operator interface{}

type OperatorClient_Find_Call

type OperatorClient_Find_Call struct {
	*mock.Call
}

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

func (*OperatorClient_Find_Call) Return

func (*OperatorClient_Find_Call) Run

func (_c *OperatorClient_Find_Call) Run(run func(ctx context.Context, id string, operator interface{})) *OperatorClient_Find_Call

func (*OperatorClient_Find_Call) RunAndReturn

func (_c *OperatorClient_Find_Call) RunAndReturn(run func(context.Context, string, interface{}) error) *OperatorClient_Find_Call

type OperatorHandler

type OperatorHandler struct {
	mock.Mock
}

OperatorHandler is an autogenerated mock type for the OperatorHandler type

func NewOperatorHandler

func NewOperatorHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperatorHandler

NewOperatorHandler creates a new instance of OperatorHandler. 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 (*OperatorHandler) EXPECT

func (*OperatorHandler) Handle

func (_m *OperatorHandler) Handle(_a0 context.Context, _a1 jetflow.OperatorClient, _a2 *jetflow.Request) ([]byte, error)

Handle provides a mock function with given fields: _a0, _a1, _a2

type OperatorHandler_Expecter

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

func (*OperatorHandler_Expecter) Handle

func (_e *OperatorHandler_Expecter) Handle(_a0 interface{}, _a1 interface{}, _a2 interface{}) *OperatorHandler_Handle_Call

Handle is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 jetflow.OperatorClient
  • _a2 *jetflow.Request

type OperatorHandler_Handle_Call

type OperatorHandler_Handle_Call struct {
	*mock.Call
}

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

func (*OperatorHandler_Handle_Call) Return

func (*OperatorHandler_Handle_Call) Run

func (*OperatorHandler_Handle_Call) RunAndReturn

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. 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 (*Storage) Commit

func (_m *Storage) Commit(_a0 context.Context, _a1 *jetflow.Request) error

Commit provides a mock function with given fields: _a0, _a1

func (*Storage) EXPECT

func (_m *Storage) EXPECT() *Storage_Expecter

func (*Storage) Get

Get provides a mock function with given fields: _a0, _a1

func (*Storage) Prepare

func (_m *Storage) Prepare(_a0 context.Context, _a1 *jetflow.Request) error

Prepare provides a mock function with given fields: _a0, _a1

func (*Storage) Rollback

func (_m *Storage) Rollback(_a0 context.Context, _a1 *jetflow.Request) error

Rollback provides a mock function with given fields: _a0, _a1

type Storage_Commit_Call

type Storage_Commit_Call struct {
	*mock.Call
}

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

func (*Storage_Commit_Call) Return

func (*Storage_Commit_Call) Run

func (_c *Storage_Commit_Call) Run(run func(_a0 context.Context, _a1 *jetflow.Request)) *Storage_Commit_Call

func (*Storage_Commit_Call) RunAndReturn

type Storage_Expecter

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

func (*Storage_Expecter) Commit

func (_e *Storage_Expecter) Commit(_a0 interface{}, _a1 interface{}) *Storage_Commit_Call

Commit is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *jetflow.Request

func (*Storage_Expecter) Get

func (_e *Storage_Expecter) Get(_a0 interface{}, _a1 interface{}) *Storage_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *jetflow.Request

func (*Storage_Expecter) Prepare

func (_e *Storage_Expecter) Prepare(_a0 interface{}, _a1 interface{}) *Storage_Prepare_Call

Prepare is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *jetflow.Request

func (*Storage_Expecter) Rollback

func (_e *Storage_Expecter) Rollback(_a0 interface{}, _a1 interface{}) *Storage_Rollback_Call

Rollback is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *jetflow.Request

type Storage_Get_Call

type Storage_Get_Call struct {
	*mock.Call
}

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

func (*Storage_Get_Call) Return

func (*Storage_Get_Call) Run

func (_c *Storage_Get_Call) Run(run func(_a0 context.Context, _a1 *jetflow.Request)) *Storage_Get_Call

func (*Storage_Get_Call) RunAndReturn

type Storage_Prepare_Call

type Storage_Prepare_Call struct {
	*mock.Call
}

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

func (*Storage_Prepare_Call) Return

func (*Storage_Prepare_Call) Run

func (*Storage_Prepare_Call) RunAndReturn

type Storage_Rollback_Call

type Storage_Rollback_Call struct {
	*mock.Call
}

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

func (*Storage_Rollback_Call) Return

func (*Storage_Rollback_Call) Run

func (*Storage_Rollback_Call) RunAndReturn

Jump to

Keyboard shortcuts

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