mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relayer

type Relayer struct {
	mock.Mock
}

Relayer is an autogenerated mock type for the Relayer type

func NewRelayer

func NewRelayer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Relayer

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

func (_m *Relayer) Close() error

Close provides a mock function with given fields:

func (*Relayer) EXPECT

func (_m *Relayer) EXPECT() *Relayer_Expecter

func (*Relayer) GetChainStatus

func (_m *Relayer) GetChainStatus(ctx context.Context) (types.ChainStatus, error)

GetChainStatus provides a mock function with given fields: ctx

func (*Relayer) HealthReport

func (_m *Relayer) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*Relayer) ListNodeStatuses

func (_m *Relayer) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]types.NodeStatus, string, int, error)

ListNodeStatuses provides a mock function with given fields: ctx, pageSize, pageToken

func (*Relayer) Name

func (_m *Relayer) Name() string

Name provides a mock function with given fields:

func (*Relayer) NewChainWriter

func (_m *Relayer) NewChainWriter(ctx context.Context, chainWriterConfig []byte) (types.ChainWriter, error)

NewChainWriter provides a mock function with given fields: ctx, chainWriterConfig

func (*Relayer) NewConfigProvider

func (_m *Relayer) NewConfigProvider(_a0 context.Context, _a1 types.RelayArgs) (types.ConfigProvider, error)

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

func (*Relayer) NewContractReader

func (_m *Relayer) NewContractReader(ctx context.Context, contractReaderConfig []byte) (types.ChainReader, error)

NewContractReader provides a mock function with given fields: ctx, contractReaderConfig

func (*Relayer) NewLLOProvider

func (_m *Relayer) NewLLOProvider(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs) (types.LLOProvider, error)

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

func (*Relayer) NewPluginProvider

func (_m *Relayer) NewPluginProvider(_a0 context.Context, _a1 types.RelayArgs, _a2 types.PluginArgs) (types.PluginProvider, error)

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

func (*Relayer) Ready

func (_m *Relayer) Ready() error

Ready provides a mock function with given fields:

func (*Relayer) Start

func (_m *Relayer) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Relayer) Transact

func (_m *Relayer) Transact(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool) error

Transact provides a mock function with given fields: ctx, from, to, amount, balanceCheck

type Relayer_Close_Call

type Relayer_Close_Call struct {
	*mock.Call
}

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

func (*Relayer_Close_Call) Return

func (_c *Relayer_Close_Call) Return(_a0 error) *Relayer_Close_Call

func (*Relayer_Close_Call) Run

func (_c *Relayer_Close_Call) Run(run func()) *Relayer_Close_Call

func (*Relayer_Close_Call) RunAndReturn

func (_c *Relayer_Close_Call) RunAndReturn(run func() error) *Relayer_Close_Call

type Relayer_Expecter

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

func (*Relayer_Expecter) Close

func (_e *Relayer_Expecter) Close() *Relayer_Close_Call

Close is a helper method to define mock.On call

func (*Relayer_Expecter) GetChainStatus

func (_e *Relayer_Expecter) GetChainStatus(ctx interface{}) *Relayer_GetChainStatus_Call

GetChainStatus is a helper method to define mock.On call

  • ctx context.Context

func (*Relayer_Expecter) HealthReport

func (_e *Relayer_Expecter) HealthReport() *Relayer_HealthReport_Call

HealthReport is a helper method to define mock.On call

func (*Relayer_Expecter) ListNodeStatuses

func (_e *Relayer_Expecter) ListNodeStatuses(ctx interface{}, pageSize interface{}, pageToken interface{}) *Relayer_ListNodeStatuses_Call

ListNodeStatuses is a helper method to define mock.On call

  • ctx context.Context
  • pageSize int32
  • pageToken string

func (*Relayer_Expecter) Name

func (_e *Relayer_Expecter) Name() *Relayer_Name_Call

Name is a helper method to define mock.On call

func (*Relayer_Expecter) NewChainWriter

func (_e *Relayer_Expecter) NewChainWriter(ctx interface{}, chainWriterConfig interface{}) *Relayer_NewChainWriter_Call

NewChainWriter is a helper method to define mock.On call

  • ctx context.Context
  • chainWriterConfig []byte

func (*Relayer_Expecter) NewConfigProvider

func (_e *Relayer_Expecter) NewConfigProvider(_a0 interface{}, _a1 interface{}) *Relayer_NewConfigProvider_Call

NewConfigProvider is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 types.RelayArgs

func (*Relayer_Expecter) NewContractReader

func (_e *Relayer_Expecter) NewContractReader(ctx interface{}, contractReaderConfig interface{}) *Relayer_NewContractReader_Call

NewContractReader is a helper method to define mock.On call

  • ctx context.Context
  • contractReaderConfig []byte

func (*Relayer_Expecter) NewLLOProvider

func (_e *Relayer_Expecter) NewLLOProvider(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Relayer_NewLLOProvider_Call

NewLLOProvider is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 types.RelayArgs
  • _a2 types.PluginArgs

func (*Relayer_Expecter) NewPluginProvider

func (_e *Relayer_Expecter) NewPluginProvider(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Relayer_NewPluginProvider_Call

NewPluginProvider is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 types.RelayArgs
  • _a2 types.PluginArgs

func (*Relayer_Expecter) Ready

func (_e *Relayer_Expecter) Ready() *Relayer_Ready_Call

Ready is a helper method to define mock.On call

func (*Relayer_Expecter) Start

func (_e *Relayer_Expecter) Start(_a0 interface{}) *Relayer_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*Relayer_Expecter) Transact

func (_e *Relayer_Expecter) Transact(ctx interface{}, from interface{}, to interface{}, amount interface{}, balanceCheck interface{}) *Relayer_Transact_Call

Transact is a helper method to define mock.On call

  • ctx context.Context
  • from string
  • to string
  • amount *big.Int
  • balanceCheck bool

type Relayer_GetChainStatus_Call

type Relayer_GetChainStatus_Call struct {
	*mock.Call
}

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

func (*Relayer_GetChainStatus_Call) Return

func (*Relayer_GetChainStatus_Call) Run

func (*Relayer_GetChainStatus_Call) RunAndReturn

type Relayer_HealthReport_Call

type Relayer_HealthReport_Call struct {
	*mock.Call
}

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

func (*Relayer_HealthReport_Call) Return

func (*Relayer_HealthReport_Call) Run

func (*Relayer_HealthReport_Call) RunAndReturn

func (_c *Relayer_HealthReport_Call) RunAndReturn(run func() map[string]error) *Relayer_HealthReport_Call

type Relayer_ListNodeStatuses_Call

type Relayer_ListNodeStatuses_Call struct {
	*mock.Call
}

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

func (*Relayer_ListNodeStatuses_Call) Return

func (_c *Relayer_ListNodeStatuses_Call) Return(stats []types.NodeStatus, nextPageToken string, total int, err error) *Relayer_ListNodeStatuses_Call

func (*Relayer_ListNodeStatuses_Call) Run

func (_c *Relayer_ListNodeStatuses_Call) Run(run func(ctx context.Context, pageSize int32, pageToken string)) *Relayer_ListNodeStatuses_Call

func (*Relayer_ListNodeStatuses_Call) RunAndReturn

type Relayer_Name_Call

type Relayer_Name_Call struct {
	*mock.Call
}

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

func (*Relayer_Name_Call) Return

func (_c *Relayer_Name_Call) Return(_a0 string) *Relayer_Name_Call

func (*Relayer_Name_Call) Run

func (_c *Relayer_Name_Call) Run(run func()) *Relayer_Name_Call

func (*Relayer_Name_Call) RunAndReturn

func (_c *Relayer_Name_Call) RunAndReturn(run func() string) *Relayer_Name_Call

type Relayer_NewChainWriter_Call

type Relayer_NewChainWriter_Call struct {
	*mock.Call
}

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

func (*Relayer_NewChainWriter_Call) Return

func (*Relayer_NewChainWriter_Call) Run

func (_c *Relayer_NewChainWriter_Call) Run(run func(ctx context.Context, chainWriterConfig []byte)) *Relayer_NewChainWriter_Call

func (*Relayer_NewChainWriter_Call) RunAndReturn

type Relayer_NewConfigProvider_Call

type Relayer_NewConfigProvider_Call struct {
	*mock.Call
}

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

func (*Relayer_NewConfigProvider_Call) Return

func (*Relayer_NewConfigProvider_Call) Run

func (*Relayer_NewConfigProvider_Call) RunAndReturn

type Relayer_NewContractReader_Call

type Relayer_NewContractReader_Call struct {
	*mock.Call
}

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

func (*Relayer_NewContractReader_Call) Return

func (*Relayer_NewContractReader_Call) Run

func (_c *Relayer_NewContractReader_Call) Run(run func(ctx context.Context, contractReaderConfig []byte)) *Relayer_NewContractReader_Call

func (*Relayer_NewContractReader_Call) RunAndReturn

type Relayer_NewLLOProvider_Call

type Relayer_NewLLOProvider_Call struct {
	*mock.Call
}

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

func (*Relayer_NewLLOProvider_Call) Return

func (*Relayer_NewLLOProvider_Call) Run

func (*Relayer_NewLLOProvider_Call) RunAndReturn

type Relayer_NewPluginProvider_Call

type Relayer_NewPluginProvider_Call struct {
	*mock.Call
}

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

func (*Relayer_NewPluginProvider_Call) Return

func (*Relayer_NewPluginProvider_Call) Run

func (*Relayer_NewPluginProvider_Call) RunAndReturn

type Relayer_Ready_Call

type Relayer_Ready_Call struct {
	*mock.Call
}

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

func (*Relayer_Ready_Call) Return

func (_c *Relayer_Ready_Call) Return(_a0 error) *Relayer_Ready_Call

func (*Relayer_Ready_Call) Run

func (_c *Relayer_Ready_Call) Run(run func()) *Relayer_Ready_Call

func (*Relayer_Ready_Call) RunAndReturn

func (_c *Relayer_Ready_Call) RunAndReturn(run func() error) *Relayer_Ready_Call

type Relayer_Start_Call

type Relayer_Start_Call struct {
	*mock.Call
}

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

func (*Relayer_Start_Call) Return

func (_c *Relayer_Start_Call) Return(_a0 error) *Relayer_Start_Call

func (*Relayer_Start_Call) Run

func (_c *Relayer_Start_Call) Run(run func(_a0 context.Context)) *Relayer_Start_Call

func (*Relayer_Start_Call) RunAndReturn

func (_c *Relayer_Start_Call) RunAndReturn(run func(context.Context) error) *Relayer_Start_Call

type Relayer_Transact_Call

type Relayer_Transact_Call struct {
	*mock.Call
}

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

func (*Relayer_Transact_Call) Return

func (*Relayer_Transact_Call) Run

func (_c *Relayer_Transact_Call) Run(run func(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool)) *Relayer_Transact_Call

func (*Relayer_Transact_Call) RunAndReturn

Jump to

Keyboard shortcuts

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