mocks

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestTask

type AttestTask struct {
	mock.Mock
}

AttestTask is an autogenerated mock type for the AttestTask type

func NewAttestTask

func NewAttestTask(t interface {
	mock.TestingT
	Cleanup(func())
},
) *AttestTask

NewAttestTask creates a new instance of AttestTask. 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 (*AttestTask) Attest

func (_m *AttestTask) Attest()

Attest provides a mock function with given fields:

type Attestator

type Attestator struct {
	mock.Mock
}

Attestator is an autogenerated mock type for the Attestator type

func NewAttestator

func NewAttestator(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Attestator

NewAttestator creates a new instance of Attestator. 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 (*Attestator) ProcessAllEvidence

func (_m *Attestator) ProcessAllEvidence(ctx context.Context, task types.AttestTask, evidence []types.Evidence) (types.AttestResult, error)

ProcessAllEvidence provides a mock function with given fields: ctx, task, evidence

func (*Attestator) ValidateEvidence

func (_m *Attestator) ValidateEvidence(ctx context.Context, task types.AttestTask, evidence types.Evidence) error

ValidateEvidence provides a mock function with given fields: ctx, task, evidence

type EvmKeeper

type EvmKeeper struct {
	mock.Mock
}

EvmKeeper is an autogenerated mock type for the EvmKeeper type

func NewEvmKeeper

func NewEvmKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *EvmKeeper

NewEvmKeeper creates a new instance of EvmKeeper. 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 (*EvmKeeper) PickValidatorForMessage

func (_m *EvmKeeper) PickValidatorForMessage(ctx context.Context, chainReferenceID string, requirements *xchain.JobRequirements) (string, string, error)

PickValidatorForMessage provides a mock function with given fields: ctx, chainReferenceID, requirements

type MetrixKeeper

type MetrixKeeper struct {
	mock.Mock
}

MetrixKeeper is an autogenerated mock type for the MetrixKeeper type

func NewMetrixKeeper

func NewMetrixKeeper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetrixKeeper

NewMetrixKeeper creates a new instance of MetrixKeeper. 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 (*MetrixKeeper) OnConsensusMessageAttested

func (_m *MetrixKeeper) OnConsensusMessageAttested(_a0 context.Context, _a1 types.MessageAttestedEvent)

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

type QueryServer

type QueryServer struct {
	mock.Mock
}

QueryServer is an autogenerated mock type for the QueryServer type

func NewQueryServer

func NewQueryServer(t interface {
	mock.TestingT
	Cleanup(func())
},
) *QueryServer

NewQueryServer creates a new instance of QueryServer. 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 (*QueryServer) GetAllQueueNames

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

func (*QueryServer) MessageByID

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

func (*QueryServer) MessagesInQueue

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

func (*QueryServer) Params

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

func (*QueryServer) QueuedMessagesForAttesting

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

func (*QueryServer) QueuedMessagesForGasEstimation

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

func (*QueryServer) QueuedMessagesForRelaying

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

func (*QueryServer) QueuedMessagesForSigning

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

type QueuedSignedMessageI

type QueuedSignedMessageI struct {
	mock.Mock
}

QueuedSignedMessageI is an autogenerated mock type for the QueuedSignedMessageI type

func NewQueuedSignedMessageI

func NewQueuedSignedMessageI(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueuedSignedMessageI

NewQueuedSignedMessageI creates a new instance of QueuedSignedMessageI. 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 (*QueuedSignedMessageI) AddEvidence

func (_m *QueuedSignedMessageI) AddEvidence(_a0 types.Evidence)

AddEvidence provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) AddGasEstimate

func (_m *QueuedSignedMessageI) AddGasEstimate(_a0 *types.GasEstimate)

AddGasEstimate provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) AddSignData

func (_m *QueuedSignedMessageI) AddSignData(_a0 *types.SignData)

AddSignData provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) ConsensusMsg

ConsensusMsg provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) GetAddedAt

func (_m *QueuedSignedMessageI) GetAddedAt() time.Time

GetAddedAt provides a mock function with given fields:

func (*QueuedSignedMessageI) GetAddedAtBlockHeight

func (_m *QueuedSignedMessageI) GetAddedAtBlockHeight() int64

GetAddedAtBlockHeight provides a mock function with given fields:

func (*QueuedSignedMessageI) GetBytesToSign

func (_m *QueuedSignedMessageI) GetBytesToSign(_a0 codectypes.AnyUnpacker) ([]byte, error)

GetBytesToSign provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) GetErrorData

func (_m *QueuedSignedMessageI) GetErrorData() *types.ErrorData

GetErrorData provides a mock function with given fields:

func (*QueuedSignedMessageI) GetEvidence

func (_m *QueuedSignedMessageI) GetEvidence() []*types.Evidence

GetEvidence provides a mock function with given fields:

func (*QueuedSignedMessageI) GetGasEstimate

func (_m *QueuedSignedMessageI) GetGasEstimate() uint64

GetGasEstimate provides a mock function with given fields:

func (*QueuedSignedMessageI) GetGasEstimates

func (_m *QueuedSignedMessageI) GetGasEstimates() []*types.GasEstimate

GetGasEstimates provides a mock function with given fields:

func (*QueuedSignedMessageI) GetHandledAtBlockHeight

func (_m *QueuedSignedMessageI) GetHandledAtBlockHeight() *math.Int

GetHandledAtBlockHeight provides a mock function with given fields:

func (*QueuedSignedMessageI) GetId

func (_m *QueuedSignedMessageI) GetId() uint64

GetId provides a mock function with given fields:

func (*QueuedSignedMessageI) GetMsg

func (_m *QueuedSignedMessageI) GetMsg() *codectypes.Any

GetMsg provides a mock function with given fields:

func (*QueuedSignedMessageI) GetPublicAccessData

func (_m *QueuedSignedMessageI) GetPublicAccessData() *types.PublicAccessData

GetPublicAccessData provides a mock function with given fields:

func (*QueuedSignedMessageI) GetRequireGasEstimation

func (_m *QueuedSignedMessageI) GetRequireGasEstimation() bool

GetRequireGasEstimation provides a mock function with given fields:

func (*QueuedSignedMessageI) GetRequireSignatures

func (_m *QueuedSignedMessageI) GetRequireSignatures() bool

GetRequireSignatures provides a mock function with given fields:

func (*QueuedSignedMessageI) GetSignData

func (_m *QueuedSignedMessageI) GetSignData() []*types.SignData

GetSignData provides a mock function with given fields:

func (*QueuedSignedMessageI) Nonce

func (_m *QueuedSignedMessageI) Nonce() []byte

Nonce provides a mock function with given fields:

func (*QueuedSignedMessageI) ProtoMessage

func (_m *QueuedSignedMessageI) ProtoMessage()

ProtoMessage provides a mock function with given fields:

func (*QueuedSignedMessageI) Reset

func (_m *QueuedSignedMessageI) Reset()

Reset provides a mock function with given fields:

func (*QueuedSignedMessageI) SetElectedGasEstimate

func (_m *QueuedSignedMessageI) SetElectedGasEstimate(_a0 uint64)

SetElectedGasEstimate provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) SetErrorData

func (_m *QueuedSignedMessageI) SetErrorData(_a0 *types.ErrorData)

SetErrorData provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) SetHandledAtBlockHeight

func (_m *QueuedSignedMessageI) SetHandledAtBlockHeight(_a0 math.Int)

SetHandledAtBlockHeight provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) SetPublicAccessData

func (_m *QueuedSignedMessageI) SetPublicAccessData(_a0 *types.PublicAccessData)

SetPublicAccessData provides a mock function with given fields: _a0

func (*QueuedSignedMessageI) String

func (_m *QueuedSignedMessageI) String() string

String provides a mock function with given fields:

type ValsetKeeper

type ValsetKeeper struct {
	mock.Mock
}

ValsetKeeper is an autogenerated mock type for the ValsetKeeper type

func NewValsetKeeper

func NewValsetKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *ValsetKeeper

NewValsetKeeper creates a new instance of ValsetKeeper. 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 (*ValsetKeeper) CanAcceptValidator

func (_m *ValsetKeeper) CanAcceptValidator(ctx context.Context, valAddr types.ValAddress) error

CanAcceptValidator provides a mock function with given fields: ctx, valAddr

func (*ValsetKeeper) GetCurrentSnapshot

func (_m *ValsetKeeper) GetCurrentSnapshot(ctx context.Context) (*valsettypes.Snapshot, error)

GetCurrentSnapshot provides a mock function with given fields: ctx

func (*ValsetKeeper) GetSigningKey

func (_m *ValsetKeeper) GetSigningKey(ctx context.Context, valAddr types.ValAddress, chainType string, chainReferenceID string, signedByAddress string) ([]byte, error)

GetSigningKey provides a mock function with given fields: ctx, valAddr, chainType, chainReferenceID, signedByAddress

func (*ValsetKeeper) Jail

func (_m *ValsetKeeper) Jail(ctx context.Context, valAddr types.ValAddress, reason string) error

Jail provides a mock function with given fields: ctx, valAddr, reason

func (*ValsetKeeper) KeepValidatorAlive

func (_m *ValsetKeeper) KeepValidatorAlive(ctx context.Context, valAddr types.ValAddress, pigeonVersion string) error

KeepValidatorAlive provides a mock function with given fields: ctx, valAddr, pigeonVersion

Jump to

Keyboard shortcuts

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