mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainReader

type ChainReader struct {
	mock.Mock
}

ChainReader is an autogenerated mock type for the ChainReader type

func NewChainReader

func NewChainReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainReader

NewChainReader creates a new instance of ChainReader. 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 (*ChainReader) BatchGetLatestValues added in v2.15.0

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

func (*ChainReader) Bind

func (_m *ChainReader) Bind(ctx context.Context, bindings []types.BoundContract) error

Bind provides a mock function with given fields: ctx, bindings

func (*ChainReader) Close

func (_m *ChainReader) Close() error

Close provides a mock function with given fields:

func (*ChainReader) EXPECT added in v2.15.0

func (_m *ChainReader) EXPECT() *ChainReader_Expecter

func (*ChainReader) GetLatestValue

func (_m *ChainReader) GetLatestValue(ctx context.Context, contractName string, method string, confidenceLevel primitives.ConfidenceLevel, params interface{}, returnVal interface{}) error

GetLatestValue provides a mock function with given fields: ctx, contractName, method, confidenceLevel, params, returnVal

func (*ChainReader) HealthReport

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

HealthReport provides a mock function with given fields:

func (*ChainReader) Name

func (_m *ChainReader) Name() string

Name provides a mock function with given fields:

func (*ChainReader) QueryKey

func (_m *ChainReader) QueryKey(ctx context.Context, contractName string, filter query.KeyFilter, limitAndSort query.LimitAndSort, sequenceDataType interface{}) ([]types.Sequence, error)

QueryKey provides a mock function with given fields: ctx, contractName, filter, limitAndSort, sequenceDataType

func (*ChainReader) Ready

func (_m *ChainReader) Ready() error

Ready provides a mock function with given fields:

func (*ChainReader) Start

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

Start provides a mock function with given fields: _a0

type ChainReader_BatchGetLatestValues_Call added in v2.15.0

type ChainReader_BatchGetLatestValues_Call struct {
	*mock.Call
}

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

func (*ChainReader_BatchGetLatestValues_Call) Return added in v2.15.0

func (*ChainReader_BatchGetLatestValues_Call) Run added in v2.15.0

func (*ChainReader_BatchGetLatestValues_Call) RunAndReturn added in v2.15.0

type ChainReader_Bind_Call added in v2.15.0

type ChainReader_Bind_Call struct {
	*mock.Call
}

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

func (*ChainReader_Bind_Call) Return added in v2.15.0

func (*ChainReader_Bind_Call) Run added in v2.15.0

func (_c *ChainReader_Bind_Call) Run(run func(ctx context.Context, bindings []types.BoundContract)) *ChainReader_Bind_Call

func (*ChainReader_Bind_Call) RunAndReturn added in v2.15.0

type ChainReader_Close_Call added in v2.15.0

type ChainReader_Close_Call struct {
	*mock.Call
}

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

func (*ChainReader_Close_Call) Return added in v2.15.0

func (*ChainReader_Close_Call) Run added in v2.15.0

func (_c *ChainReader_Close_Call) Run(run func()) *ChainReader_Close_Call

func (*ChainReader_Close_Call) RunAndReturn added in v2.15.0

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

type ChainReader_Expecter added in v2.15.0

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

func (*ChainReader_Expecter) BatchGetLatestValues added in v2.15.0

func (_e *ChainReader_Expecter) BatchGetLatestValues(ctx interface{}, request interface{}) *ChainReader_BatchGetLatestValues_Call

BatchGetLatestValues is a helper method to define mock.On call

  • ctx context.Context
  • request types.BatchGetLatestValuesRequest

func (*ChainReader_Expecter) Bind added in v2.15.0

func (_e *ChainReader_Expecter) Bind(ctx interface{}, bindings interface{}) *ChainReader_Bind_Call

Bind is a helper method to define mock.On call

  • ctx context.Context
  • bindings []types.BoundContract

func (*ChainReader_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*ChainReader_Expecter) GetLatestValue added in v2.15.0

func (_e *ChainReader_Expecter) GetLatestValue(ctx interface{}, contractName interface{}, method interface{}, confidenceLevel interface{}, params interface{}, returnVal interface{}) *ChainReader_GetLatestValue_Call

GetLatestValue is a helper method to define mock.On call

  • ctx context.Context
  • contractName string
  • method string
  • confidenceLevel primitives.ConfidenceLevel
  • params interface{}
  • returnVal interface{}

func (*ChainReader_Expecter) HealthReport added in v2.15.0

HealthReport is a helper method to define mock.On call

func (*ChainReader_Expecter) Name added in v2.15.0

Name is a helper method to define mock.On call

func (*ChainReader_Expecter) QueryKey added in v2.15.0

func (_e *ChainReader_Expecter) QueryKey(ctx interface{}, contractName interface{}, filter interface{}, limitAndSort interface{}, sequenceDataType interface{}) *ChainReader_QueryKey_Call

QueryKey is a helper method to define mock.On call

  • ctx context.Context
  • contractName string
  • filter query.KeyFilter
  • limitAndSort query.LimitAndSort
  • sequenceDataType interface{}

func (*ChainReader_Expecter) Ready added in v2.15.0

Ready is a helper method to define mock.On call

func (*ChainReader_Expecter) Start added in v2.15.0

func (_e *ChainReader_Expecter) Start(_a0 interface{}) *ChainReader_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type ChainReader_GetLatestValue_Call added in v2.15.0

type ChainReader_GetLatestValue_Call struct {
	*mock.Call
}

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

func (*ChainReader_GetLatestValue_Call) Return added in v2.15.0

func (*ChainReader_GetLatestValue_Call) Run added in v2.15.0

func (_c *ChainReader_GetLatestValue_Call) Run(run func(ctx context.Context, contractName string, method string, confidenceLevel primitives.ConfidenceLevel, params interface{}, returnVal interface{})) *ChainReader_GetLatestValue_Call

func (*ChainReader_GetLatestValue_Call) RunAndReturn added in v2.15.0

type ChainReader_HealthReport_Call added in v2.15.0

type ChainReader_HealthReport_Call struct {
	*mock.Call
}

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

func (*ChainReader_HealthReport_Call) Return added in v2.15.0

func (*ChainReader_HealthReport_Call) Run added in v2.15.0

func (*ChainReader_HealthReport_Call) RunAndReturn added in v2.15.0

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

type ChainReader_Name_Call added in v2.15.0

type ChainReader_Name_Call struct {
	*mock.Call
}

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

func (*ChainReader_Name_Call) Return added in v2.15.0

func (*ChainReader_Name_Call) Run added in v2.15.0

func (_c *ChainReader_Name_Call) Run(run func()) *ChainReader_Name_Call

func (*ChainReader_Name_Call) RunAndReturn added in v2.15.0

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

type ChainReader_QueryKey_Call added in v2.15.0

type ChainReader_QueryKey_Call struct {
	*mock.Call
}

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

func (*ChainReader_QueryKey_Call) Return added in v2.15.0

func (*ChainReader_QueryKey_Call) Run added in v2.15.0

func (_c *ChainReader_QueryKey_Call) Run(run func(ctx context.Context, contractName string, filter query.KeyFilter, limitAndSort query.LimitAndSort, sequenceDataType interface{})) *ChainReader_QueryKey_Call

func (*ChainReader_QueryKey_Call) RunAndReturn added in v2.15.0

type ChainReader_Ready_Call added in v2.15.0

type ChainReader_Ready_Call struct {
	*mock.Call
}

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

func (*ChainReader_Ready_Call) Return added in v2.15.0

func (*ChainReader_Ready_Call) Run added in v2.15.0

func (_c *ChainReader_Ready_Call) Run(run func()) *ChainReader_Ready_Call

func (*ChainReader_Ready_Call) RunAndReturn added in v2.15.0

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

type ChainReader_Start_Call added in v2.15.0

type ChainReader_Start_Call struct {
	*mock.Call
}

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

func (*ChainReader_Start_Call) Return added in v2.15.0

func (*ChainReader_Start_Call) Run added in v2.15.0

func (*ChainReader_Start_Call) RunAndReturn added in v2.15.0

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

type ChainWriter

type ChainWriter struct {
	mock.Mock
}

ChainWriter is an autogenerated mock type for the ChainWriter type

func NewChainWriter

func NewChainWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainWriter

NewChainWriter creates a new instance of ChainWriter. 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 (*ChainWriter) Close added in v2.15.0

func (_m *ChainWriter) Close() error

Close provides a mock function with given fields:

func (*ChainWriter) EXPECT added in v2.15.0

func (_m *ChainWriter) EXPECT() *ChainWriter_Expecter

func (*ChainWriter) GetFeeComponents

func (_m *ChainWriter) GetFeeComponents(ctx context.Context) (*types.ChainFeeComponents, error)

GetFeeComponents provides a mock function with given fields: ctx

func (*ChainWriter) GetTransactionStatus

func (_m *ChainWriter) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)

GetTransactionStatus provides a mock function with given fields: ctx, transactionID

func (*ChainWriter) HealthReport added in v2.15.0

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

HealthReport provides a mock function with given fields:

func (*ChainWriter) Name added in v2.15.0

func (_m *ChainWriter) Name() string

Name provides a mock function with given fields:

func (*ChainWriter) Ready added in v2.15.0

func (_m *ChainWriter) Ready() error

Ready provides a mock function with given fields:

func (*ChainWriter) Start added in v2.15.0

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

Start provides a mock function with given fields: _a0

func (*ChainWriter) SubmitTransaction

func (_m *ChainWriter) SubmitTransaction(ctx context.Context, contractName string, method string, args interface{}, transactionID string, toAddress string, meta *types.TxMeta, value *big.Int) error

SubmitTransaction provides a mock function with given fields: ctx, contractName, method, args, transactionID, toAddress, meta, value

type ChainWriter_Close_Call added in v2.15.0

type ChainWriter_Close_Call struct {
	*mock.Call
}

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

func (*ChainWriter_Close_Call) Return added in v2.15.0

func (*ChainWriter_Close_Call) Run added in v2.15.0

func (_c *ChainWriter_Close_Call) Run(run func()) *ChainWriter_Close_Call

func (*ChainWriter_Close_Call) RunAndReturn added in v2.15.0

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

type ChainWriter_Expecter added in v2.15.0

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

func (*ChainWriter_Expecter) Close added in v2.15.0

Close is a helper method to define mock.On call

func (*ChainWriter_Expecter) GetFeeComponents added in v2.15.0

func (_e *ChainWriter_Expecter) GetFeeComponents(ctx interface{}) *ChainWriter_GetFeeComponents_Call

GetFeeComponents is a helper method to define mock.On call

  • ctx context.Context

func (*ChainWriter_Expecter) GetTransactionStatus added in v2.15.0

func (_e *ChainWriter_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *ChainWriter_GetTransactionStatus_Call

GetTransactionStatus is a helper method to define mock.On call

  • ctx context.Context
  • transactionID string

func (*ChainWriter_Expecter) HealthReport added in v2.15.0

HealthReport is a helper method to define mock.On call

func (*ChainWriter_Expecter) Name added in v2.15.0

Name is a helper method to define mock.On call

func (*ChainWriter_Expecter) Ready added in v2.15.0

Ready is a helper method to define mock.On call

func (*ChainWriter_Expecter) Start added in v2.15.0

func (_e *ChainWriter_Expecter) Start(_a0 interface{}) *ChainWriter_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*ChainWriter_Expecter) SubmitTransaction added in v2.15.0

func (_e *ChainWriter_Expecter) SubmitTransaction(ctx interface{}, contractName interface{}, method interface{}, args interface{}, transactionID interface{}, toAddress interface{}, meta interface{}, value interface{}) *ChainWriter_SubmitTransaction_Call

SubmitTransaction is a helper method to define mock.On call

  • ctx context.Context
  • contractName string
  • method string
  • args interface{}
  • transactionID string
  • toAddress string
  • meta *types.TxMeta
  • value *big.Int

type ChainWriter_GetFeeComponents_Call added in v2.15.0

type ChainWriter_GetFeeComponents_Call struct {
	*mock.Call
}

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

func (*ChainWriter_GetFeeComponents_Call) Return added in v2.15.0

func (*ChainWriter_GetFeeComponents_Call) Run added in v2.15.0

func (*ChainWriter_GetFeeComponents_Call) RunAndReturn added in v2.15.0

type ChainWriter_GetTransactionStatus_Call added in v2.15.0

type ChainWriter_GetTransactionStatus_Call struct {
	*mock.Call
}

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

func (*ChainWriter_GetTransactionStatus_Call) Return added in v2.15.0

func (*ChainWriter_GetTransactionStatus_Call) Run added in v2.15.0

func (*ChainWriter_GetTransactionStatus_Call) RunAndReturn added in v2.15.0

type ChainWriter_HealthReport_Call added in v2.15.0

type ChainWriter_HealthReport_Call struct {
	*mock.Call
}

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

func (*ChainWriter_HealthReport_Call) Return added in v2.15.0

func (*ChainWriter_HealthReport_Call) Run added in v2.15.0

func (*ChainWriter_HealthReport_Call) RunAndReturn added in v2.15.0

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

type ChainWriter_Name_Call added in v2.15.0

type ChainWriter_Name_Call struct {
	*mock.Call
}

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

func (*ChainWriter_Name_Call) Return added in v2.15.0

func (*ChainWriter_Name_Call) Run added in v2.15.0

func (_c *ChainWriter_Name_Call) Run(run func()) *ChainWriter_Name_Call

func (*ChainWriter_Name_Call) RunAndReturn added in v2.15.0

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

type ChainWriter_Ready_Call added in v2.15.0

type ChainWriter_Ready_Call struct {
	*mock.Call
}

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

func (*ChainWriter_Ready_Call) Return added in v2.15.0

func (*ChainWriter_Ready_Call) Run added in v2.15.0

func (_c *ChainWriter_Ready_Call) Run(run func()) *ChainWriter_Ready_Call

func (*ChainWriter_Ready_Call) RunAndReturn added in v2.15.0

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

type ChainWriter_Start_Call added in v2.15.0

type ChainWriter_Start_Call struct {
	*mock.Call
}

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

func (*ChainWriter_Start_Call) Return added in v2.15.0

func (*ChainWriter_Start_Call) Run added in v2.15.0

func (*ChainWriter_Start_Call) RunAndReturn added in v2.15.0

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

type ChainWriter_SubmitTransaction_Call added in v2.15.0

type ChainWriter_SubmitTransaction_Call struct {
	*mock.Call
}

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

func (*ChainWriter_SubmitTransaction_Call) Return added in v2.15.0

func (*ChainWriter_SubmitTransaction_Call) Run added in v2.15.0

func (_c *ChainWriter_SubmitTransaction_Call) Run(run func(ctx context.Context, contractName string, method string, args interface{}, transactionID string, toAddress string, meta *types.TxMeta, value *big.Int)) *ChainWriter_SubmitTransaction_Call

func (*ChainWriter_SubmitTransaction_Call) RunAndReturn added in v2.15.0

Jump to

Keyboard shortcuts

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