mocks

package
v0.0.0-...-672ceae Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 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 ChainService

type ChainService struct {
	mock.Mock
}

ChainService is an autogenerated mock type for the chainService type

func NewChainService

func NewChainService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainService

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

func (_m *ChainService) EXPECT() *ChainService_Expecter

func (*ChainService) LatestHead

func (_m *ChainService) LatestHead(ctx context.Context) (types.Head, error)

LatestHead provides a mock function with given fields: ctx

type ChainService_Expecter

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

func (*ChainService_Expecter) LatestHead

func (_e *ChainService_Expecter) LatestHead(ctx interface{}) *ChainService_LatestHead_Call

LatestHead is a helper method to define mock.On call

  • ctx context.Context

type ChainService_LatestHead_Call

type ChainService_LatestHead_Call struct {
	*mock.Call
}

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

func (*ChainService_LatestHead_Call) Return

func (*ChainService_LatestHead_Call) Run

func (*ChainService_LatestHead_Call) RunAndReturn

type ContractReader

type ContractReader struct {
	mock.Mock
}

ContractReader is an autogenerated mock type for the contractReader type

func NewContractReader

func NewContractReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractReader

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

func (*ContractReader) GetLatestValue

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

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

type ContractReader_Expecter

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

func (*ContractReader_Expecter) GetLatestValue

func (_e *ContractReader_Expecter) GetLatestValue(ctx interface{}, readIdentifier interface{}, confidenceLevel interface{}, params interface{}, returnVal interface{}) *ContractReader_GetLatestValue_Call

GetLatestValue is a helper method to define mock.On call

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

type ContractReader_GetLatestValue_Call

type ContractReader_GetLatestValue_Call struct {
	*mock.Call
}

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

func (*ContractReader_GetLatestValue_Call) Return

func (*ContractReader_GetLatestValue_Call) Run

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

func (*ContractReader_GetLatestValue_Call) RunAndReturn

type ContractWriter

type ContractWriter struct {
	mock.Mock
}

ContractWriter is an autogenerated mock type for the contractWriter type

func NewContractWriter

func NewContractWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContractWriter

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

func (_m *ContractWriter) Close() error

Close provides a mock function with no fields

func (*ContractWriter) EXPECT

func (*ContractWriter) GetEstimateFee

func (_m *ContractWriter) GetEstimateFee(ctx context.Context, contract string, method string, args interface{}, toAddress string, meta *types.TxMeta, val *big.Int) (types.EstimateFee, error)

GetEstimateFee provides a mock function with given fields: ctx, contract, method, args, toAddress, meta, val

func (*ContractWriter) GetFeeComponents

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

GetFeeComponents provides a mock function with given fields: ctx

func (*ContractWriter) GetTransactionFee

func (_m *ContractWriter) GetTransactionFee(ctx context.Context, transactionID string) (decimal.Decimal, error)

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

func (*ContractWriter) GetTransactionStatus

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

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

func (*ContractWriter) HealthReport

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

HealthReport provides a mock function with no fields

func (*ContractWriter) Name

func (_m *ContractWriter) Name() string

Name provides a mock function with no fields

func (*ContractWriter) Ready

func (_m *ContractWriter) Ready() error

Ready provides a mock function with no fields

func (*ContractWriter) Start

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

Start provides a mock function with given fields: _a0

func (*ContractWriter) SubmitTransaction

func (_m *ContractWriter) 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 ContractWriter_Close_Call

type ContractWriter_Close_Call struct {
	*mock.Call
}

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

func (*ContractWriter_Close_Call) Return

func (*ContractWriter_Close_Call) Run

func (*ContractWriter_Close_Call) RunAndReturn

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

type ContractWriter_Expecter

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

func (*ContractWriter_Expecter) Close

Close is a helper method to define mock.On call

func (*ContractWriter_Expecter) GetEstimateFee

func (_e *ContractWriter_Expecter) GetEstimateFee(ctx interface{}, contract interface{}, method interface{}, args interface{}, toAddress interface{}, meta interface{}, val interface{}) *ContractWriter_GetEstimateFee_Call

GetEstimateFee is a helper method to define mock.On call

  • ctx context.Context
  • contract string
  • method string
  • args interface{}
  • toAddress string
  • meta *types.TxMeta
  • val *big.Int

func (*ContractWriter_Expecter) GetFeeComponents

func (_e *ContractWriter_Expecter) GetFeeComponents(ctx interface{}) *ContractWriter_GetFeeComponents_Call

GetFeeComponents is a helper method to define mock.On call

  • ctx context.Context

func (*ContractWriter_Expecter) GetTransactionFee

func (_e *ContractWriter_Expecter) GetTransactionFee(ctx interface{}, transactionID interface{}) *ContractWriter_GetTransactionFee_Call

GetTransactionFee is a helper method to define mock.On call

  • ctx context.Context
  • transactionID string

func (*ContractWriter_Expecter) GetTransactionStatus

func (_e *ContractWriter_Expecter) GetTransactionStatus(ctx interface{}, transactionID interface{}) *ContractWriter_GetTransactionStatus_Call

GetTransactionStatus is a helper method to define mock.On call

  • ctx context.Context
  • transactionID string

func (*ContractWriter_Expecter) HealthReport

HealthReport is a helper method to define mock.On call

func (*ContractWriter_Expecter) Name

Name is a helper method to define mock.On call

func (*ContractWriter_Expecter) Ready

Ready is a helper method to define mock.On call

func (*ContractWriter_Expecter) Start

func (_e *ContractWriter_Expecter) Start(_a0 interface{}) *ContractWriter_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*ContractWriter_Expecter) SubmitTransaction

func (_e *ContractWriter_Expecter) SubmitTransaction(ctx interface{}, contractName interface{}, method interface{}, args interface{}, transactionID interface{}, toAddress interface{}, meta interface{}, value interface{}) *ContractWriter_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 ContractWriter_GetEstimateFee_Call

type ContractWriter_GetEstimateFee_Call struct {
	*mock.Call
}

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

func (*ContractWriter_GetEstimateFee_Call) Return

func (*ContractWriter_GetEstimateFee_Call) Run

func (_c *ContractWriter_GetEstimateFee_Call) Run(run func(ctx context.Context, contract string, method string, args interface{}, toAddress string, meta *types.TxMeta, val *big.Int)) *ContractWriter_GetEstimateFee_Call

func (*ContractWriter_GetEstimateFee_Call) RunAndReturn

type ContractWriter_GetFeeComponents_Call

type ContractWriter_GetFeeComponents_Call struct {
	*mock.Call
}

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

func (*ContractWriter_GetFeeComponents_Call) Return

func (*ContractWriter_GetFeeComponents_Call) Run

func (*ContractWriter_GetFeeComponents_Call) RunAndReturn

type ContractWriter_GetTransactionFee_Call

type ContractWriter_GetTransactionFee_Call struct {
	*mock.Call
}

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

func (*ContractWriter_GetTransactionFee_Call) Return

func (*ContractWriter_GetTransactionFee_Call) Run

func (*ContractWriter_GetTransactionFee_Call) RunAndReturn

type ContractWriter_GetTransactionStatus_Call

type ContractWriter_GetTransactionStatus_Call struct {
	*mock.Call
}

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

func (*ContractWriter_GetTransactionStatus_Call) Return

func (*ContractWriter_GetTransactionStatus_Call) Run

func (*ContractWriter_GetTransactionStatus_Call) RunAndReturn

type ContractWriter_HealthReport_Call

type ContractWriter_HealthReport_Call struct {
	*mock.Call
}

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

func (*ContractWriter_HealthReport_Call) Return

func (*ContractWriter_HealthReport_Call) Run

func (*ContractWriter_HealthReport_Call) RunAndReturn

type ContractWriter_Name_Call

type ContractWriter_Name_Call struct {
	*mock.Call
}

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

func (*ContractWriter_Name_Call) Return

func (*ContractWriter_Name_Call) Run

func (*ContractWriter_Name_Call) RunAndReturn

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

type ContractWriter_Ready_Call

type ContractWriter_Ready_Call struct {
	*mock.Call
}

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

func (*ContractWriter_Ready_Call) Return

func (*ContractWriter_Ready_Call) Run

func (*ContractWriter_Ready_Call) RunAndReturn

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

type ContractWriter_Start_Call

type ContractWriter_Start_Call struct {
	*mock.Call
}

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

func (*ContractWriter_Start_Call) Return

func (*ContractWriter_Start_Call) Run

func (*ContractWriter_Start_Call) RunAndReturn

type ContractWriter_SubmitTransaction_Call

type ContractWriter_SubmitTransaction_Call struct {
	*mock.Call
}

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

func (*ContractWriter_SubmitTransaction_Call) Return

func (*ContractWriter_SubmitTransaction_Call) Run

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

func (*ContractWriter_SubmitTransaction_Call) RunAndReturn

Jump to

Keyboard shortcuts

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