mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: LGPL-3.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVMClient

type EVMClient struct {
	mock.Mock
}

EVMClient is an autogenerated mock type for the EVMClient type

func NewEVMClient

func NewEVMClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EVMClient

NewEVMClient creates a new instance of EVMClient. 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 (*EVMClient) CallContract

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

func (*EVMClient) EXPECT

func (_m *EVMClient) EXPECT() *EVMClient_Expecter

func (*EVMClient) FilterLogs

func (_m *EVMClient) FilterLogs(_a0 sdk.Runtime, _a1 *evm.FilterLogsRequest) sdk.Promise[*evm.FilterLogsReply]

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

func (*EVMClient) RegisterLogTracking

func (_m *EVMClient) RegisterLogTracking(_a0 sdk.Runtime, _a1 *evm.RegisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]

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

func (*EVMClient) UnregisterLogTracking

func (_m *EVMClient) UnregisterLogTracking(_a0 sdk.Runtime, _a1 *evm.UnregisterLogTrackingRequest) sdk.Promise[*emptypb.Empty]

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

func (*EVMClient) WriteReport

func (_m *EVMClient) WriteReport(_a0 sdk.Runtime, _a1 *evm.WriteReportRequest) sdk.Promise[*evm.WriteReportReply]

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

type EVMClient_CallContract_Call

type EVMClient_CallContract_Call struct {
	*mock.Call
}

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

func (*EVMClient_CallContract_Call) Return

func (*EVMClient_CallContract_Call) Run

func (*EVMClient_CallContract_Call) RunAndReturn

type EVMClient_Expecter

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

func (*EVMClient_Expecter) CallContract

func (_e *EVMClient_Expecter) CallContract(_a0 interface{}, _a1 interface{}) *EVMClient_CallContract_Call

CallContract is a helper method to define mock.On call

  • _a0 sdk.Runtime
  • _a1 *evm.CallContractRequest

func (*EVMClient_Expecter) FilterLogs

func (_e *EVMClient_Expecter) FilterLogs(_a0 interface{}, _a1 interface{}) *EVMClient_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • _a0 sdk.Runtime
  • _a1 *evm.FilterLogsRequest

func (*EVMClient_Expecter) RegisterLogTracking

func (_e *EVMClient_Expecter) RegisterLogTracking(_a0 interface{}, _a1 interface{}) *EVMClient_RegisterLogTracking_Call

RegisterLogTracking is a helper method to define mock.On call

  • _a0 sdk.Runtime
  • _a1 *evm.RegisterLogTrackingRequest

func (*EVMClient_Expecter) UnregisterLogTracking

func (_e *EVMClient_Expecter) UnregisterLogTracking(_a0 interface{}, _a1 interface{}) *EVMClient_UnregisterLogTracking_Call

UnregisterLogTracking is a helper method to define mock.On call

  • _a0 sdk.Runtime
  • _a1 *evm.UnregisterLogTrackingRequest

func (*EVMClient_Expecter) WriteReport

func (_e *EVMClient_Expecter) WriteReport(_a0 interface{}, _a1 interface{}) *EVMClient_WriteReport_Call

WriteReport is a helper method to define mock.On call

  • _a0 sdk.Runtime
  • _a1 *evm.WriteReportRequest

type EVMClient_FilterLogs_Call

type EVMClient_FilterLogs_Call struct {
	*mock.Call
}

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

func (*EVMClient_FilterLogs_Call) Return

func (*EVMClient_FilterLogs_Call) Run

func (*EVMClient_FilterLogs_Call) RunAndReturn

type EVMClient_RegisterLogTracking_Call

type EVMClient_RegisterLogTracking_Call struct {
	*mock.Call
}

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

func (*EVMClient_RegisterLogTracking_Call) Return

func (*EVMClient_RegisterLogTracking_Call) Run

func (*EVMClient_RegisterLogTracking_Call) RunAndReturn

type EVMClient_UnregisterLogTracking_Call

type EVMClient_UnregisterLogTracking_Call struct {
	*mock.Call
}

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

func (*EVMClient_UnregisterLogTracking_Call) Return

func (*EVMClient_UnregisterLogTracking_Call) Run

type EVMClient_WriteReport_Call

type EVMClient_WriteReport_Call struct {
	*mock.Call
}

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

func (*EVMClient_WriteReport_Call) Return

func (*EVMClient_WriteReport_Call) Run

func (*EVMClient_WriteReport_Call) RunAndReturn

type Runtime

type Runtime struct {
	mock.Mock
}

Runtime is an autogenerated mock type for the Runtime type

func NewRuntime

func NewRuntime(t interface {
	mock.TestingT
	Cleanup(func())
}) *Runtime

NewRuntime creates a new instance of Runtime. 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 (*Runtime) CallCapability

func (_m *Runtime) CallCapability(request *pb.CapabilityRequest) sdk.Promise[*pb.CapabilityResponse]

CallCapability provides a mock function with given fields: request

func (*Runtime) EXPECT

func (_m *Runtime) EXPECT() *Runtime_Expecter

func (*Runtime) GenerateReport

func (_m *Runtime) GenerateReport(_a0 *pb.ReportRequest) sdk.Promise[*pb.ReportResponse]

GenerateReport provides a mock function with given fields: _a0

func (*Runtime) Rand

func (_m *Runtime) Rand() (*rand.Rand, error)

Rand provides a mock function with no fields

func (*Runtime) RunInNodeMode

func (_m *Runtime) RunInNodeMode(fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs) sdk.Promise[values.Value]

RunInNodeMode provides a mock function with given fields: fn

type Runtime_CallCapability_Call

type Runtime_CallCapability_Call struct {
	*mock.Call
}

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

func (*Runtime_CallCapability_Call) Return

func (*Runtime_CallCapability_Call) Run

func (*Runtime_CallCapability_Call) RunAndReturn

type Runtime_Expecter

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

func (*Runtime_Expecter) CallCapability

func (_e *Runtime_Expecter) CallCapability(request interface{}) *Runtime_CallCapability_Call

CallCapability is a helper method to define mock.On call

  • request *pb.CapabilityRequest

func (*Runtime_Expecter) GenerateReport

func (_e *Runtime_Expecter) GenerateReport(_a0 interface{}) *Runtime_GenerateReport_Call

GenerateReport is a helper method to define mock.On call

  • _a0 *pb.ReportRequest

func (*Runtime_Expecter) Rand

func (_e *Runtime_Expecter) Rand() *Runtime_Rand_Call

Rand is a helper method to define mock.On call

func (*Runtime_Expecter) RunInNodeMode

func (_e *Runtime_Expecter) RunInNodeMode(fn interface{}) *Runtime_RunInNodeMode_Call

RunInNodeMode is a helper method to define mock.On call

  • fn func(sdk.NodeRuntime) *pb.SimpleConsensusInputs

type Runtime_GenerateReport_Call

type Runtime_GenerateReport_Call struct {
	*mock.Call
}

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

func (*Runtime_GenerateReport_Call) Return

func (*Runtime_GenerateReport_Call) Run

func (*Runtime_GenerateReport_Call) RunAndReturn

type Runtime_Rand_Call

type Runtime_Rand_Call struct {
	*mock.Call
}

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

func (*Runtime_Rand_Call) Return

func (_c *Runtime_Rand_Call) Return(_a0 *rand.Rand, _a1 error) *Runtime_Rand_Call

func (*Runtime_Rand_Call) Run

func (_c *Runtime_Rand_Call) Run(run func()) *Runtime_Rand_Call

func (*Runtime_Rand_Call) RunAndReturn

func (_c *Runtime_Rand_Call) RunAndReturn(run func() (*rand.Rand, error)) *Runtime_Rand_Call

type Runtime_RunInNodeMode_Call

type Runtime_RunInNodeMode_Call struct {
	*mock.Call
}

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

func (*Runtime_RunInNodeMode_Call) Return

func (*Runtime_RunInNodeMode_Call) Run

func (*Runtime_RunInNodeMode_Call) RunAndReturn

Jump to

Keyboard shortcuts

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