mocks

package
v0.4.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggSenderStorageMock

type AggSenderStorageMock struct {
	mock.Mock
}

AggSenderStorageMock is an autogenerated mock type for the AggSenderStorage type

func NewAggSenderStorageMock

func NewAggSenderStorageMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggSenderStorageMock

NewAggSenderStorageMock creates a new instance of AggSenderStorageMock. 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 (*AggSenderStorageMock) DeleteCertificate

func (_m *AggSenderStorageMock) DeleteCertificate(ctx context.Context, certificateID common.Hash) error

DeleteCertificate provides a mock function with given fields: ctx, certificateID

func (*AggSenderStorageMock) EXPECT

func (*AggSenderStorageMock) GetCertificateByHeight

func (_m *AggSenderStorageMock) GetCertificateByHeight(ctx context.Context, height uint64) (types.CertificateInfo, error)

GetCertificateByHeight provides a mock function with given fields: ctx, height

func (*AggSenderStorageMock) GetCertificatesByStatus

func (_m *AggSenderStorageMock) GetCertificatesByStatus(ctx context.Context, status []agglayer.CertificateStatus) ([]*types.CertificateInfo, error)

GetCertificatesByStatus provides a mock function with given fields: ctx, status

func (*AggSenderStorageMock) GetLastSentCertificate

func (_m *AggSenderStorageMock) GetLastSentCertificate(ctx context.Context) (types.CertificateInfo, error)

GetLastSentCertificate provides a mock function with given fields: ctx

func (*AggSenderStorageMock) SaveLastSentCertificate

func (_m *AggSenderStorageMock) SaveLastSentCertificate(ctx context.Context, certificate types.CertificateInfo) error

SaveLastSentCertificate provides a mock function with given fields: ctx, certificate

func (*AggSenderStorageMock) UpdateCertificateStatus

func (_m *AggSenderStorageMock) UpdateCertificateStatus(ctx context.Context, certificate types.CertificateInfo) error

UpdateCertificateStatus provides a mock function with given fields: ctx, certificate

type AggSenderStorageMock_DeleteCertificate_Call

type AggSenderStorageMock_DeleteCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorageMock_DeleteCertificate_Call) Return

func (*AggSenderStorageMock_DeleteCertificate_Call) Run

func (*AggSenderStorageMock_DeleteCertificate_Call) RunAndReturn

type AggSenderStorageMock_Expecter

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

func (*AggSenderStorageMock_Expecter) DeleteCertificate

func (_e *AggSenderStorageMock_Expecter) DeleteCertificate(ctx interface{}, certificateID interface{}) *AggSenderStorageMock_DeleteCertificate_Call

DeleteCertificate is a helper method to define mock.On call

  • ctx context.Context
  • certificateID common.Hash

func (*AggSenderStorageMock_Expecter) GetCertificateByHeight

func (_e *AggSenderStorageMock_Expecter) GetCertificateByHeight(ctx interface{}, height interface{}) *AggSenderStorageMock_GetCertificateByHeight_Call

GetCertificateByHeight is a helper method to define mock.On call

  • ctx context.Context
  • height uint64

func (*AggSenderStorageMock_Expecter) GetCertificatesByStatus

func (_e *AggSenderStorageMock_Expecter) GetCertificatesByStatus(ctx interface{}, status interface{}) *AggSenderStorageMock_GetCertificatesByStatus_Call

GetCertificatesByStatus is a helper method to define mock.On call

  • ctx context.Context
  • status []agglayer.CertificateStatus

func (*AggSenderStorageMock_Expecter) GetLastSentCertificate

func (_e *AggSenderStorageMock_Expecter) GetLastSentCertificate(ctx interface{}) *AggSenderStorageMock_GetLastSentCertificate_Call

GetLastSentCertificate is a helper method to define mock.On call

  • ctx context.Context

func (*AggSenderStorageMock_Expecter) SaveLastSentCertificate

func (_e *AggSenderStorageMock_Expecter) SaveLastSentCertificate(ctx interface{}, certificate interface{}) *AggSenderStorageMock_SaveLastSentCertificate_Call

SaveLastSentCertificate is a helper method to define mock.On call

  • ctx context.Context
  • certificate types.CertificateInfo

func (*AggSenderStorageMock_Expecter) UpdateCertificateStatus

func (_e *AggSenderStorageMock_Expecter) UpdateCertificateStatus(ctx interface{}, certificate interface{}) *AggSenderStorageMock_UpdateCertificateStatus_Call

UpdateCertificateStatus is a helper method to define mock.On call

  • ctx context.Context
  • certificate types.CertificateInfo

type AggSenderStorageMock_GetCertificateByHeight_Call

type AggSenderStorageMock_GetCertificateByHeight_Call struct {
	*mock.Call
}

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

func (*AggSenderStorageMock_GetCertificateByHeight_Call) Return

func (*AggSenderStorageMock_GetCertificateByHeight_Call) Run

func (*AggSenderStorageMock_GetCertificateByHeight_Call) RunAndReturn

type AggSenderStorageMock_GetCertificatesByStatus_Call

type AggSenderStorageMock_GetCertificatesByStatus_Call struct {
	*mock.Call
}

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

func (*AggSenderStorageMock_GetCertificatesByStatus_Call) Return

func (*AggSenderStorageMock_GetCertificatesByStatus_Call) Run

type AggSenderStorageMock_GetLastSentCertificate_Call

type AggSenderStorageMock_GetLastSentCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorageMock_GetLastSentCertificate_Call) Return

func (*AggSenderStorageMock_GetLastSentCertificate_Call) Run

func (*AggSenderStorageMock_GetLastSentCertificate_Call) RunAndReturn

type AggSenderStorageMock_SaveLastSentCertificate_Call

type AggSenderStorageMock_SaveLastSentCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorageMock_SaveLastSentCertificate_Call) Return

func (*AggSenderStorageMock_SaveLastSentCertificate_Call) Run

func (*AggSenderStorageMock_SaveLastSentCertificate_Call) RunAndReturn

type AggSenderStorageMock_UpdateCertificateStatus_Call

type AggSenderStorageMock_UpdateCertificateStatus_Call struct {
	*mock.Call
}

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

func (*AggSenderStorageMock_UpdateCertificateStatus_Call) Return

func (*AggSenderStorageMock_UpdateCertificateStatus_Call) Run

func (*AggSenderStorageMock_UpdateCertificateStatus_Call) RunAndReturn

type EthClientMock

type EthClientMock struct {
	mock.Mock
}

EthClientMock is an autogenerated mock type for the EthClient type

func NewEthClientMock

func NewEthClientMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthClientMock

NewEthClientMock creates a new instance of EthClientMock. 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 (*EthClientMock) BlockNumber

func (_m *EthClientMock) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*EthClientMock) EXPECT

func (_m *EthClientMock) EXPECT() *EthClientMock_Expecter

func (*EthClientMock) HeaderByNumber

func (_m *EthClientMock) HeaderByNumber(ctx context.Context, number *big.Int) (*coretypes.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

type EthClientMock_BlockNumber_Call

type EthClientMock_BlockNumber_Call struct {
	*mock.Call
}

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

func (*EthClientMock_BlockNumber_Call) Return

func (*EthClientMock_BlockNumber_Call) Run

func (*EthClientMock_BlockNumber_Call) RunAndReturn

type EthClientMock_Expecter

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

func (*EthClientMock_Expecter) BlockNumber

func (_e *EthClientMock_Expecter) BlockNumber(ctx interface{}) *EthClientMock_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*EthClientMock_Expecter) HeaderByNumber

func (_e *EthClientMock_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClientMock_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

type EthClientMock_HeaderByNumber_Call

type EthClientMock_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*EthClientMock_HeaderByNumber_Call) Return

func (*EthClientMock_HeaderByNumber_Call) Run

func (*EthClientMock_HeaderByNumber_Call) RunAndReturn

type L1InfoTreeSyncerMock

type L1InfoTreeSyncerMock struct {
	mock.Mock
}

L1InfoTreeSyncerMock is an autogenerated mock type for the L1InfoTreeSyncer type

func NewL1InfoTreeSyncerMock

func NewL1InfoTreeSyncerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1InfoTreeSyncerMock

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

func (*L1InfoTreeSyncerMock) GetInfoByGlobalExitRoot

func (_m *L1InfoTreeSyncerMock) GetInfoByGlobalExitRoot(globalExitRoot common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)

GetInfoByGlobalExitRoot provides a mock function with given fields: globalExitRoot

func (*L1InfoTreeSyncerMock) GetL1InfoTreeMerkleProofFromIndexToRoot

func (_m *L1InfoTreeSyncerMock) GetL1InfoTreeMerkleProofFromIndexToRoot(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)

GetL1InfoTreeMerkleProofFromIndexToRoot provides a mock function with given fields: ctx, index, root

func (*L1InfoTreeSyncerMock) GetL1InfoTreeRootByIndex

func (_m *L1InfoTreeSyncerMock) GetL1InfoTreeRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetL1InfoTreeRootByIndex provides a mock function with given fields: ctx, index

type L1InfoTreeSyncerMock_Expecter

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

func (*L1InfoTreeSyncerMock_Expecter) GetInfoByGlobalExitRoot

func (_e *L1InfoTreeSyncerMock_Expecter) GetInfoByGlobalExitRoot(globalExitRoot interface{}) *L1InfoTreeSyncerMock_GetInfoByGlobalExitRoot_Call

GetInfoByGlobalExitRoot is a helper method to define mock.On call

  • globalExitRoot common.Hash

func (*L1InfoTreeSyncerMock_Expecter) GetL1InfoTreeMerkleProofFromIndexToRoot

func (_e *L1InfoTreeSyncerMock_Expecter) GetL1InfoTreeMerkleProofFromIndexToRoot(ctx interface{}, index interface{}, root interface{}) *L1InfoTreeSyncerMock_GetL1InfoTreeMerkleProofFromIndexToRoot_Call

GetL1InfoTreeMerkleProofFromIndexToRoot is a helper method to define mock.On call

  • ctx context.Context
  • index uint32
  • root common.Hash

func (*L1InfoTreeSyncerMock_Expecter) GetL1InfoTreeRootByIndex

func (_e *L1InfoTreeSyncerMock_Expecter) GetL1InfoTreeRootByIndex(ctx interface{}, index interface{}) *L1InfoTreeSyncerMock_GetL1InfoTreeRootByIndex_Call

GetL1InfoTreeRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

type L1InfoTreeSyncerMock_GetInfoByGlobalExitRoot_Call

type L1InfoTreeSyncerMock_GetInfoByGlobalExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncerMock_GetInfoByGlobalExitRoot_Call) Return

func (*L1InfoTreeSyncerMock_GetInfoByGlobalExitRoot_Call) Run

func (*L1InfoTreeSyncerMock_GetInfoByGlobalExitRoot_Call) RunAndReturn

type L1InfoTreeSyncerMock_GetL1InfoTreeMerkleProofFromIndexToRoot_Call

type L1InfoTreeSyncerMock_GetL1InfoTreeMerkleProofFromIndexToRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncerMock_GetL1InfoTreeMerkleProofFromIndexToRoot_Call) Return

func (*L1InfoTreeSyncerMock_GetL1InfoTreeMerkleProofFromIndexToRoot_Call) Run

type L1InfoTreeSyncerMock_GetL1InfoTreeRootByIndex_Call

type L1InfoTreeSyncerMock_GetL1InfoTreeRootByIndex_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncerMock_GetL1InfoTreeRootByIndex_Call) Return

func (*L1InfoTreeSyncerMock_GetL1InfoTreeRootByIndex_Call) Run

func (*L1InfoTreeSyncerMock_GetL1InfoTreeRootByIndex_Call) RunAndReturn

type L2BridgeSyncerMock

type L2BridgeSyncerMock struct {
	mock.Mock
}

L2BridgeSyncerMock is an autogenerated mock type for the L2BridgeSyncer type

func NewL2BridgeSyncerMock

func NewL2BridgeSyncerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *L2BridgeSyncerMock

NewL2BridgeSyncerMock creates a new instance of L2BridgeSyncerMock. 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 (*L2BridgeSyncerMock) BlockFinality

func (_m *L2BridgeSyncerMock) BlockFinality() etherman.BlockNumberFinality

BlockFinality provides a mock function with given fields:

func (*L2BridgeSyncerMock) EXPECT

func (*L2BridgeSyncerMock) GetBlockByLER

func (_m *L2BridgeSyncerMock) GetBlockByLER(ctx context.Context, ler common.Hash) (uint64, error)

GetBlockByLER provides a mock function with given fields: ctx, ler

func (*L2BridgeSyncerMock) GetBridgesPublished

func (_m *L2BridgeSyncerMock) GetBridgesPublished(ctx context.Context, fromBlock uint64, toBlock uint64) ([]bridgesync.Bridge, error)

GetBridgesPublished provides a mock function with given fields: ctx, fromBlock, toBlock

func (*L2BridgeSyncerMock) GetClaims

func (_m *L2BridgeSyncerMock) GetClaims(ctx context.Context, fromBlock uint64, toBlock uint64) ([]bridgesync.Claim, error)

GetClaims provides a mock function with given fields: ctx, fromBlock, toBlock

func (*L2BridgeSyncerMock) GetExitRootByIndex

func (_m *L2BridgeSyncerMock) GetExitRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetExitRootByIndex provides a mock function with given fields: ctx, index

func (*L2BridgeSyncerMock) GetLastProcessedBlock

func (_m *L2BridgeSyncerMock) GetLastProcessedBlock(ctx context.Context) (uint64, error)

GetLastProcessedBlock provides a mock function with given fields: ctx

func (*L2BridgeSyncerMock) OriginNetwork

func (_m *L2BridgeSyncerMock) OriginNetwork() uint32

OriginNetwork provides a mock function with given fields:

type L2BridgeSyncerMock_BlockFinality_Call

type L2BridgeSyncerMock_BlockFinality_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_BlockFinality_Call) Return

func (*L2BridgeSyncerMock_BlockFinality_Call) Run

func (*L2BridgeSyncerMock_BlockFinality_Call) RunAndReturn

type L2BridgeSyncerMock_Expecter

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

func (*L2BridgeSyncerMock_Expecter) BlockFinality

BlockFinality is a helper method to define mock.On call

func (*L2BridgeSyncerMock_Expecter) GetBlockByLER

func (_e *L2BridgeSyncerMock_Expecter) GetBlockByLER(ctx interface{}, ler interface{}) *L2BridgeSyncerMock_GetBlockByLER_Call

GetBlockByLER is a helper method to define mock.On call

  • ctx context.Context
  • ler common.Hash

func (*L2BridgeSyncerMock_Expecter) GetBridgesPublished

func (_e *L2BridgeSyncerMock_Expecter) GetBridgesPublished(ctx interface{}, fromBlock interface{}, toBlock interface{}) *L2BridgeSyncerMock_GetBridgesPublished_Call

GetBridgesPublished is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock uint64
  • toBlock uint64

func (*L2BridgeSyncerMock_Expecter) GetClaims

func (_e *L2BridgeSyncerMock_Expecter) GetClaims(ctx interface{}, fromBlock interface{}, toBlock interface{}) *L2BridgeSyncerMock_GetClaims_Call

GetClaims is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock uint64
  • toBlock uint64

func (*L2BridgeSyncerMock_Expecter) GetExitRootByIndex

func (_e *L2BridgeSyncerMock_Expecter) GetExitRootByIndex(ctx interface{}, index interface{}) *L2BridgeSyncerMock_GetExitRootByIndex_Call

GetExitRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*L2BridgeSyncerMock_Expecter) GetLastProcessedBlock

func (_e *L2BridgeSyncerMock_Expecter) GetLastProcessedBlock(ctx interface{}) *L2BridgeSyncerMock_GetLastProcessedBlock_Call

GetLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*L2BridgeSyncerMock_Expecter) OriginNetwork

OriginNetwork is a helper method to define mock.On call

type L2BridgeSyncerMock_GetBlockByLER_Call

type L2BridgeSyncerMock_GetBlockByLER_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_GetBlockByLER_Call) Return

func (*L2BridgeSyncerMock_GetBlockByLER_Call) Run

func (*L2BridgeSyncerMock_GetBlockByLER_Call) RunAndReturn

type L2BridgeSyncerMock_GetBridgesPublished_Call

type L2BridgeSyncerMock_GetBridgesPublished_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_GetBridgesPublished_Call) Return

func (*L2BridgeSyncerMock_GetBridgesPublished_Call) Run

func (*L2BridgeSyncerMock_GetBridgesPublished_Call) RunAndReturn

type L2BridgeSyncerMock_GetClaims_Call

type L2BridgeSyncerMock_GetClaims_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_GetClaims_Call) Return

func (*L2BridgeSyncerMock_GetClaims_Call) Run

func (*L2BridgeSyncerMock_GetClaims_Call) RunAndReturn

type L2BridgeSyncerMock_GetExitRootByIndex_Call

type L2BridgeSyncerMock_GetExitRootByIndex_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_GetExitRootByIndex_Call) Return

func (*L2BridgeSyncerMock_GetExitRootByIndex_Call) Run

func (*L2BridgeSyncerMock_GetExitRootByIndex_Call) RunAndReturn

type L2BridgeSyncerMock_GetLastProcessedBlock_Call

type L2BridgeSyncerMock_GetLastProcessedBlock_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_GetLastProcessedBlock_Call) Return

func (*L2BridgeSyncerMock_GetLastProcessedBlock_Call) Run

func (*L2BridgeSyncerMock_GetLastProcessedBlock_Call) RunAndReturn

type L2BridgeSyncerMock_OriginNetwork_Call

type L2BridgeSyncerMock_OriginNetwork_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncerMock_OriginNetwork_Call) Return

func (*L2BridgeSyncerMock_OriginNetwork_Call) Run

func (*L2BridgeSyncerMock_OriginNetwork_Call) RunAndReturn

type LoggerMock

type LoggerMock struct {
	mock.Mock
}

LoggerMock is an autogenerated mock type for the Logger type

func NewLoggerMock

func NewLoggerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *LoggerMock

NewLoggerMock creates a new instance of LoggerMock. 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 (*LoggerMock) Debug

func (_m *LoggerMock) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*LoggerMock) Debugf

func (_m *LoggerMock) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, args

func (*LoggerMock) EXPECT

func (_m *LoggerMock) EXPECT() *LoggerMock_Expecter

func (*LoggerMock) Error

func (_m *LoggerMock) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*LoggerMock) Errorf

func (_m *LoggerMock) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*LoggerMock) Info

func (_m *LoggerMock) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*LoggerMock) Infof

func (_m *LoggerMock) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

type LoggerMock_Debug_Call

type LoggerMock_Debug_Call struct {
	*mock.Call
}

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

func (*LoggerMock_Debug_Call) Return

func (*LoggerMock_Debug_Call) Run

func (_c *LoggerMock_Debug_Call) Run(run func(args ...interface{})) *LoggerMock_Debug_Call

func (*LoggerMock_Debug_Call) RunAndReturn

func (_c *LoggerMock_Debug_Call) RunAndReturn(run func(...interface{})) *LoggerMock_Debug_Call

type LoggerMock_Debugf_Call

type LoggerMock_Debugf_Call struct {
	*mock.Call
}

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

func (*LoggerMock_Debugf_Call) Return

func (*LoggerMock_Debugf_Call) Run

func (_c *LoggerMock_Debugf_Call) Run(run func(format string, args ...interface{})) *LoggerMock_Debugf_Call

func (*LoggerMock_Debugf_Call) RunAndReturn

func (_c *LoggerMock_Debugf_Call) RunAndReturn(run func(string, ...interface{})) *LoggerMock_Debugf_Call

type LoggerMock_Error_Call

type LoggerMock_Error_Call struct {
	*mock.Call
}

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

func (*LoggerMock_Error_Call) Return

func (*LoggerMock_Error_Call) Run

func (_c *LoggerMock_Error_Call) Run(run func(args ...interface{})) *LoggerMock_Error_Call

func (*LoggerMock_Error_Call) RunAndReturn

func (_c *LoggerMock_Error_Call) RunAndReturn(run func(...interface{})) *LoggerMock_Error_Call

type LoggerMock_Errorf_Call

type LoggerMock_Errorf_Call struct {
	*mock.Call
}

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

func (*LoggerMock_Errorf_Call) Return

func (*LoggerMock_Errorf_Call) Run

func (_c *LoggerMock_Errorf_Call) Run(run func(format string, args ...interface{})) *LoggerMock_Errorf_Call

func (*LoggerMock_Errorf_Call) RunAndReturn

func (_c *LoggerMock_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *LoggerMock_Errorf_Call

type LoggerMock_Expecter

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

func (*LoggerMock_Expecter) Debug

func (_e *LoggerMock_Expecter) Debug(args ...interface{}) *LoggerMock_Debug_Call

Debug is a helper method to define mock.On call

  • args ...interface{}

func (*LoggerMock_Expecter) Debugf

func (_e *LoggerMock_Expecter) Debugf(format interface{}, args ...interface{}) *LoggerMock_Debugf_Call

Debugf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*LoggerMock_Expecter) Error

func (_e *LoggerMock_Expecter) Error(args ...interface{}) *LoggerMock_Error_Call

Error is a helper method to define mock.On call

  • args ...interface{}

func (*LoggerMock_Expecter) Errorf

func (_e *LoggerMock_Expecter) Errorf(format interface{}, args ...interface{}) *LoggerMock_Errorf_Call

Errorf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*LoggerMock_Expecter) Info

func (_e *LoggerMock_Expecter) Info(args ...interface{}) *LoggerMock_Info_Call

Info is a helper method to define mock.On call

  • args ...interface{}

func (*LoggerMock_Expecter) Infof

func (_e *LoggerMock_Expecter) Infof(format interface{}, args ...interface{}) *LoggerMock_Infof_Call

Infof is a helper method to define mock.On call

  • format string
  • args ...interface{}

type LoggerMock_Info_Call

type LoggerMock_Info_Call struct {
	*mock.Call
}

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

func (*LoggerMock_Info_Call) Return

func (*LoggerMock_Info_Call) Run

func (_c *LoggerMock_Info_Call) Run(run func(args ...interface{})) *LoggerMock_Info_Call

func (*LoggerMock_Info_Call) RunAndReturn

func (_c *LoggerMock_Info_Call) RunAndReturn(run func(...interface{})) *LoggerMock_Info_Call

type LoggerMock_Infof_Call

type LoggerMock_Infof_Call struct {
	*mock.Call
}

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

func (*LoggerMock_Infof_Call) Return

func (*LoggerMock_Infof_Call) Run

func (_c *LoggerMock_Infof_Call) Run(run func(format string, args ...interface{})) *LoggerMock_Infof_Call

func (*LoggerMock_Infof_Call) RunAndReturn

func (_c *LoggerMock_Infof_Call) RunAndReturn(run func(string, ...interface{})) *LoggerMock_Infof_Call

Jump to

Keyboard shortcuts

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