mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleV1

type ModuleV1 struct {
	mock.Mock
}

ModuleV1 is an autogenerated mock type for the ModuleV1 type

func NewModuleV1

func NewModuleV1(t interface {
	mock.TestingT
	Cleanup(func())
}) *ModuleV1

NewModuleV1 creates a new instance of ModuleV1. 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 (*ModuleV1) Close

func (_m *ModuleV1) Close()

Close provides a mock function with no fields

func (*ModuleV1) EXPECT

func (_m *ModuleV1) EXPECT() *ModuleV1_Expecter

func (*ModuleV1) IsLegacyDAG

func (_m *ModuleV1) IsLegacyDAG() bool

IsLegacyDAG provides a mock function with no fields

func (*ModuleV1) Run

func (_m *ModuleV1) Run(ctx context.Context, request *pb.Request) (*pb.Response, error)

Run provides a mock function with given fields: ctx, request

func (*ModuleV1) Start

func (_m *ModuleV1) Start()

Start provides a mock function with no fields

type ModuleV1_Close_Call

type ModuleV1_Close_Call struct {
	*mock.Call
}

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

func (*ModuleV1_Close_Call) Return

func (*ModuleV1_Close_Call) Run

func (_c *ModuleV1_Close_Call) Run(run func()) *ModuleV1_Close_Call

func (*ModuleV1_Close_Call) RunAndReturn

func (_c *ModuleV1_Close_Call) RunAndReturn(run func()) *ModuleV1_Close_Call

type ModuleV1_Expecter

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

func (*ModuleV1_Expecter) Close

Close is a helper method to define mock.On call

func (*ModuleV1_Expecter) IsLegacyDAG

func (_e *ModuleV1_Expecter) IsLegacyDAG() *ModuleV1_IsLegacyDAG_Call

IsLegacyDAG is a helper method to define mock.On call

func (*ModuleV1_Expecter) Run

func (_e *ModuleV1_Expecter) Run(ctx interface{}, request interface{}) *ModuleV1_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context
  • request *pb.Request

func (*ModuleV1_Expecter) Start

Start is a helper method to define mock.On call

type ModuleV1_IsLegacyDAG_Call

type ModuleV1_IsLegacyDAG_Call struct {
	*mock.Call
}

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

func (*ModuleV1_IsLegacyDAG_Call) Return

func (*ModuleV1_IsLegacyDAG_Call) Run

func (*ModuleV1_IsLegacyDAG_Call) RunAndReturn

func (_c *ModuleV1_IsLegacyDAG_Call) RunAndReturn(run func() bool) *ModuleV1_IsLegacyDAG_Call

type ModuleV1_Run_Call

type ModuleV1_Run_Call struct {
	*mock.Call
}

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

func (*ModuleV1_Run_Call) Return

func (_c *ModuleV1_Run_Call) Return(_a0 *pb.Response, _a1 error) *ModuleV1_Run_Call

func (*ModuleV1_Run_Call) Run

func (_c *ModuleV1_Run_Call) Run(run func(ctx context.Context, request *pb.Request)) *ModuleV1_Run_Call

func (*ModuleV1_Run_Call) RunAndReturn

func (_c *ModuleV1_Run_Call) RunAndReturn(run func(context.Context, *pb.Request) (*pb.Response, error)) *ModuleV1_Run_Call

type ModuleV1_Start_Call

type ModuleV1_Start_Call struct {
	*mock.Call
}

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

func (*ModuleV1_Start_Call) Return

func (*ModuleV1_Start_Call) Run

func (_c *ModuleV1_Start_Call) Run(run func()) *ModuleV1_Start_Call

func (*ModuleV1_Start_Call) RunAndReturn

func (_c *ModuleV1_Start_Call) RunAndReturn(run func()) *ModuleV1_Start_Call

type ModuleV2

type ModuleV2 struct {
	mock.Mock
}

ModuleV2 is an autogenerated mock type for the ModuleV2 type

func NewModuleV2

func NewModuleV2(t interface {
	mock.TestingT
	Cleanup(func())
}) *ModuleV2

NewModuleV2 creates a new instance of ModuleV2. 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 (*ModuleV2) Close

func (_m *ModuleV2) Close()

Close provides a mock function with no fields

func (*ModuleV2) EXPECT

func (_m *ModuleV2) EXPECT() *ModuleV2_Expecter

func (*ModuleV2) Execute

func (_m *ModuleV2) Execute(ctx context.Context, request *pb.ExecuteRequest, handler host.ExecutionHelper) (*pb.ExecutionResult, error)

Execute provides a mock function with given fields: ctx, request, handler

func (*ModuleV2) IsLegacyDAG

func (_m *ModuleV2) IsLegacyDAG() bool

IsLegacyDAG provides a mock function with no fields

func (*ModuleV2) Start

func (_m *ModuleV2) Start()

Start provides a mock function with no fields

type ModuleV2_Close_Call

type ModuleV2_Close_Call struct {
	*mock.Call
}

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

func (*ModuleV2_Close_Call) Return

func (*ModuleV2_Close_Call) Run

func (_c *ModuleV2_Close_Call) Run(run func()) *ModuleV2_Close_Call

func (*ModuleV2_Close_Call) RunAndReturn

func (_c *ModuleV2_Close_Call) RunAndReturn(run func()) *ModuleV2_Close_Call

type ModuleV2_Execute_Call

type ModuleV2_Execute_Call struct {
	*mock.Call
}

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

func (*ModuleV2_Execute_Call) Return

func (*ModuleV2_Execute_Call) Run

func (*ModuleV2_Execute_Call) RunAndReturn

type ModuleV2_Expecter

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

func (*ModuleV2_Expecter) Close

Close is a helper method to define mock.On call

func (*ModuleV2_Expecter) Execute

func (_e *ModuleV2_Expecter) Execute(ctx interface{}, request interface{}, handler interface{}) *ModuleV2_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • request *pb.ExecuteRequest
  • handler host.ExecutionHelper

func (*ModuleV2_Expecter) IsLegacyDAG

func (_e *ModuleV2_Expecter) IsLegacyDAG() *ModuleV2_IsLegacyDAG_Call

IsLegacyDAG is a helper method to define mock.On call

func (*ModuleV2_Expecter) Start

Start is a helper method to define mock.On call

type ModuleV2_IsLegacyDAG_Call

type ModuleV2_IsLegacyDAG_Call struct {
	*mock.Call
}

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

func (*ModuleV2_IsLegacyDAG_Call) Return

func (*ModuleV2_IsLegacyDAG_Call) Run

func (*ModuleV2_IsLegacyDAG_Call) RunAndReturn

func (_c *ModuleV2_IsLegacyDAG_Call) RunAndReturn(run func() bool) *ModuleV2_IsLegacyDAG_Call

type ModuleV2_Start_Call

type ModuleV2_Start_Call struct {
	*mock.Call
}

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

func (*ModuleV2_Start_Call) Return

func (*ModuleV2_Start_Call) Run

func (_c *ModuleV2_Start_Call) Run(run func()) *ModuleV2_Start_Call

func (*ModuleV2_Start_Call) RunAndReturn

func (_c *ModuleV2_Start_Call) RunAndReturn(run func()) *ModuleV2_Start_Call

Jump to

Keyboard shortcuts

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