mock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeaconClient

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

MockBeaconClient is a mock of BeaconClient interface.

func NewMockBeaconClient

func NewMockBeaconClient(ctrl *gomock.Controller) *MockBeaconClient

NewMockBeaconClient creates a new mock instance.

func (*MockBeaconClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBeaconClient) GetAttestations

func (m *MockBeaconClient) GetAttestations(ctx context.Context) (phase0.Attestations, error)

GetAttestations mocks base method.

func (*MockBeaconClient) GetAttesterSlashings

func (m *MockBeaconClient) GetAttesterSlashings(ctx context.Context) (phase0.AttesterSlashings, error)

GetAttesterSlashings mocks base method.

func (*MockBeaconClient) GetBlock

func (m *MockBeaconClient) GetBlock(ctx context.Context, blockID string) (*bellatrix.SignedBeaconBlock, error)

GetBlock mocks base method.

func (*MockBeaconClient) GetBlockAttestations

func (m *MockBeaconClient) GetBlockAttestations(ctx context.Context, blockID string) (phase0.Attestations, error)

GetBlockAttestations mocks base method.

func (*MockBeaconClient) GetBlockHeader

func (m *MockBeaconClient) GetBlockHeader(ctx context.Context, blockID string) (*types.BeaconBlockHeader, error)

GetBlockHeader mocks base method.

func (*MockBeaconClient) GetBlockHeaders

func (m *MockBeaconClient) GetBlockHeaders(ctx context.Context, slot *common.Slot, parentRoot *common.Root) ([]*types.BeaconBlockHeader, error)

GetBlockHeaders mocks base method.

func (*MockBeaconClient) GetBlockRoot

func (m *MockBeaconClient) GetBlockRoot(ctx context.Context, blockID string) (*common.Root, error)

GetBlockRoot mocks base method.

func (*MockBeaconClient) GetCommittees

func (m *MockBeaconClient) GetCommittees(ctx context.Context, stateID string, epoch *common.Epoch, index *common.CommitteeIndex, slot *common.Slot) ([]*types.Committee, error)

GetCommittees mocks base method.

func (*MockBeaconClient) GetGenesis

func (m *MockBeaconClient) GetGenesis(ctx context.Context) (*types.Genesis, error)

GetGenesis mocks base method.

func (*MockBeaconClient) GetProposerSlashings

func (m *MockBeaconClient) GetProposerSlashings(ctx context.Context) (phase0.ProposerSlashings, error)

GetProposerSlashings mocks base method.

func (*MockBeaconClient) GetStateFinalityCheckpoints

func (m *MockBeaconClient) GetStateFinalityCheckpoints(ctx context.Context, stateID string) (*types.StateFinalityCheckpoints, error)

GetStateFinalityCheckpoints mocks base method.

func (*MockBeaconClient) GetStateFork

func (m *MockBeaconClient) GetStateFork(ctx context.Context, stateID string) (*common.Fork, error)

GetStateFork mocks base method.

func (*MockBeaconClient) GetStateRoot

func (m *MockBeaconClient) GetStateRoot(ctx context.Context, stateID string) (*common.Root, error)

GetStateRoot mocks base method.

func (*MockBeaconClient) GetSyncCommittees

func (m *MockBeaconClient) GetSyncCommittees(ctx context.Context, stateID string, epoch *common.Epoch) (*types.SyncCommittees, error)

GetSyncCommittees mocks base method.

func (*MockBeaconClient) GetValidator

func (m *MockBeaconClient) GetValidator(ctx context.Context, stateID, validatorID string) (*types.Validator, error)

GetValidator mocks base method.

func (*MockBeaconClient) GetValidatorBalances

func (m *MockBeaconClient) GetValidatorBalances(ctx context.Context, stateID string, validatorIDs []string) ([]*types.ValidatorBalance, error)

GetValidatorBalances mocks base method.

func (*MockBeaconClient) GetValidators

func (m *MockBeaconClient) GetValidators(ctx context.Context, stateID string, validatorIDs, statuses []string) ([]*types.Validator, error)

GetValidators mocks base method.

func (*MockBeaconClient) GetVoluntaryExits

func (m *MockBeaconClient) GetVoluntaryExits(ctx context.Context) (phase0.VoluntaryExits, error)

GetVoluntaryExits mocks base method.

type MockBeaconClientMockRecorder

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

MockBeaconClientMockRecorder is the mock recorder for MockBeaconClient.

func (*MockBeaconClientMockRecorder) GetAttestations

func (mr *MockBeaconClientMockRecorder) GetAttestations(ctx interface{}) *gomock.Call

GetAttestations indicates an expected call of GetAttestations.

func (*MockBeaconClientMockRecorder) GetAttesterSlashings

func (mr *MockBeaconClientMockRecorder) GetAttesterSlashings(ctx interface{}) *gomock.Call

GetAttesterSlashings indicates an expected call of GetAttesterSlashings.

func (*MockBeaconClientMockRecorder) GetBlock

func (mr *MockBeaconClientMockRecorder) GetBlock(ctx, blockID interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*MockBeaconClientMockRecorder) GetBlockAttestations

func (mr *MockBeaconClientMockRecorder) GetBlockAttestations(ctx, blockID interface{}) *gomock.Call

GetBlockAttestations indicates an expected call of GetBlockAttestations.

func (*MockBeaconClientMockRecorder) GetBlockHeader

func (mr *MockBeaconClientMockRecorder) GetBlockHeader(ctx, blockID interface{}) *gomock.Call

GetBlockHeader indicates an expected call of GetBlockHeader.

func (*MockBeaconClientMockRecorder) GetBlockHeaders

func (mr *MockBeaconClientMockRecorder) GetBlockHeaders(ctx, slot, parentRoot interface{}) *gomock.Call

GetBlockHeaders indicates an expected call of GetBlockHeaders.

func (*MockBeaconClientMockRecorder) GetBlockRoot

func (mr *MockBeaconClientMockRecorder) GetBlockRoot(ctx, blockID interface{}) *gomock.Call

GetBlockRoot indicates an expected call of GetBlockRoot.

func (*MockBeaconClientMockRecorder) GetCommittees

func (mr *MockBeaconClientMockRecorder) GetCommittees(ctx, stateID, epoch, index, slot interface{}) *gomock.Call

GetCommittees indicates an expected call of GetCommittees.

func (*MockBeaconClientMockRecorder) GetGenesis

func (mr *MockBeaconClientMockRecorder) GetGenesis(ctx interface{}) *gomock.Call

GetGenesis indicates an expected call of GetGenesis.

func (*MockBeaconClientMockRecorder) GetProposerSlashings

func (mr *MockBeaconClientMockRecorder) GetProposerSlashings(ctx interface{}) *gomock.Call

GetProposerSlashings indicates an expected call of GetProposerSlashings.

func (*MockBeaconClientMockRecorder) GetStateFinalityCheckpoints

func (mr *MockBeaconClientMockRecorder) GetStateFinalityCheckpoints(ctx, stateID interface{}) *gomock.Call

GetStateFinalityCheckpoints indicates an expected call of GetStateFinalityCheckpoints.

func (*MockBeaconClientMockRecorder) GetStateFork

func (mr *MockBeaconClientMockRecorder) GetStateFork(ctx, stateID interface{}) *gomock.Call

GetStateFork indicates an expected call of GetStateFork.

func (*MockBeaconClientMockRecorder) GetStateRoot

func (mr *MockBeaconClientMockRecorder) GetStateRoot(ctx, stateID interface{}) *gomock.Call

GetStateRoot indicates an expected call of GetStateRoot.

func (*MockBeaconClientMockRecorder) GetSyncCommittees

func (mr *MockBeaconClientMockRecorder) GetSyncCommittees(ctx, stateID, epoch interface{}) *gomock.Call

GetSyncCommittees indicates an expected call of GetSyncCommittees.

func (*MockBeaconClientMockRecorder) GetValidator

func (mr *MockBeaconClientMockRecorder) GetValidator(ctx, stateID, validatorID interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockBeaconClientMockRecorder) GetValidatorBalances

func (mr *MockBeaconClientMockRecorder) GetValidatorBalances(ctx, stateID, validatorIDs interface{}) *gomock.Call

GetValidatorBalances indicates an expected call of GetValidatorBalances.

func (*MockBeaconClientMockRecorder) GetValidators

func (mr *MockBeaconClientMockRecorder) GetValidators(ctx, stateID, validatorIDs, statuses interface{}) *gomock.Call

GetValidators indicates an expected call of GetValidators.

func (*MockBeaconClientMockRecorder) GetVoluntaryExits

func (mr *MockBeaconClientMockRecorder) GetVoluntaryExits(ctx interface{}) *gomock.Call

GetVoluntaryExits indicates an expected call of GetVoluntaryExits.

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetAttestations

func (m *MockClient) GetAttestations(ctx context.Context) (phase0.Attestations, error)

GetAttestations mocks base method.

func (*MockClient) GetAttesterSlashings

func (m *MockClient) GetAttesterSlashings(ctx context.Context) (phase0.AttesterSlashings, error)

GetAttesterSlashings mocks base method.

func (*MockClient) GetBlock

func (m *MockClient) GetBlock(ctx context.Context, blockID string) (*bellatrix.SignedBeaconBlock, error)

GetBlock mocks base method.

func (*MockClient) GetBlockAttestations

func (m *MockClient) GetBlockAttestations(ctx context.Context, blockID string) (phase0.Attestations, error)

GetBlockAttestations mocks base method.

func (*MockClient) GetBlockHeader

func (m *MockClient) GetBlockHeader(ctx context.Context, blockID string) (*types.BeaconBlockHeader, error)

GetBlockHeader mocks base method.

func (*MockClient) GetBlockHeaders

func (m *MockClient) GetBlockHeaders(ctx context.Context, slot *common.Slot, parentRoot *common.Root) ([]*types.BeaconBlockHeader, error)

GetBlockHeaders mocks base method.

func (*MockClient) GetBlockRoot

func (m *MockClient) GetBlockRoot(ctx context.Context, blockID string) (*common.Root, error)

GetBlockRoot mocks base method.

func (*MockClient) GetCommittees

func (m *MockClient) GetCommittees(ctx context.Context, stateID string, epoch *common.Epoch, index *common.CommitteeIndex, slot *common.Slot) ([]*types.Committee, error)

GetCommittees mocks base method.

func (*MockClient) GetGenesis

func (m *MockClient) GetGenesis(ctx context.Context) (*types.Genesis, error)

GetGenesis mocks base method.

func (*MockClient) GetNodeVersion

func (m *MockClient) GetNodeVersion(ctx context.Context) (string, error)

GetNodeVersion mocks base method.

func (*MockClient) GetProposerSlashings

func (m *MockClient) GetProposerSlashings(ctx context.Context) (phase0.ProposerSlashings, error)

GetProposerSlashings mocks base method.

func (*MockClient) GetSpec

func (m *MockClient) GetSpec(ctx context.Context) (*common.Spec, error)

GetSpec mocks base method.

func (*MockClient) GetStateFinalityCheckpoints

func (m *MockClient) GetStateFinalityCheckpoints(ctx context.Context, stateID string) (*types.StateFinalityCheckpoints, error)

GetStateFinalityCheckpoints mocks base method.

func (*MockClient) GetStateFork

func (m *MockClient) GetStateFork(ctx context.Context, stateID string) (*common.Fork, error)

GetStateFork mocks base method.

func (*MockClient) GetStateRoot

func (m *MockClient) GetStateRoot(ctx context.Context, stateID string) (*common.Root, error)

GetStateRoot mocks base method.

func (*MockClient) GetSyncCommittees

func (m *MockClient) GetSyncCommittees(ctx context.Context, stateID string, epoch *common.Epoch) (*types.SyncCommittees, error)

GetSyncCommittees mocks base method.

func (*MockClient) GetValidator

func (m *MockClient) GetValidator(ctx context.Context, stateID, validatorID string) (*types.Validator, error)

GetValidator mocks base method.

func (*MockClient) GetValidatorBalances

func (m *MockClient) GetValidatorBalances(ctx context.Context, stateID string, validatorIDs []string) ([]*types.ValidatorBalance, error)

GetValidatorBalances mocks base method.

func (*MockClient) GetValidators

func (m *MockClient) GetValidators(ctx context.Context, stateID string, validatorIDs, statuses []string) ([]*types.Validator, error)

GetValidators mocks base method.

func (*MockClient) GetVoluntaryExits

func (m *MockClient) GetVoluntaryExits(ctx context.Context) (phase0.VoluntaryExits, error)

GetVoluntaryExits mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetAttestations

func (mr *MockClientMockRecorder) GetAttestations(ctx interface{}) *gomock.Call

GetAttestations indicates an expected call of GetAttestations.

func (*MockClientMockRecorder) GetAttesterSlashings

func (mr *MockClientMockRecorder) GetAttesterSlashings(ctx interface{}) *gomock.Call

GetAttesterSlashings indicates an expected call of GetAttesterSlashings.

func (*MockClientMockRecorder) GetBlock

func (mr *MockClientMockRecorder) GetBlock(ctx, blockID interface{}) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*MockClientMockRecorder) GetBlockAttestations

func (mr *MockClientMockRecorder) GetBlockAttestations(ctx, blockID interface{}) *gomock.Call

GetBlockAttestations indicates an expected call of GetBlockAttestations.

func (*MockClientMockRecorder) GetBlockHeader

func (mr *MockClientMockRecorder) GetBlockHeader(ctx, blockID interface{}) *gomock.Call

GetBlockHeader indicates an expected call of GetBlockHeader.

func (*MockClientMockRecorder) GetBlockHeaders

func (mr *MockClientMockRecorder) GetBlockHeaders(ctx, slot, parentRoot interface{}) *gomock.Call

GetBlockHeaders indicates an expected call of GetBlockHeaders.

func (*MockClientMockRecorder) GetBlockRoot

func (mr *MockClientMockRecorder) GetBlockRoot(ctx, blockID interface{}) *gomock.Call

GetBlockRoot indicates an expected call of GetBlockRoot.

func (*MockClientMockRecorder) GetCommittees

func (mr *MockClientMockRecorder) GetCommittees(ctx, stateID, epoch, index, slot interface{}) *gomock.Call

GetCommittees indicates an expected call of GetCommittees.

func (*MockClientMockRecorder) GetGenesis

func (mr *MockClientMockRecorder) GetGenesis(ctx interface{}) *gomock.Call

GetGenesis indicates an expected call of GetGenesis.

func (*MockClientMockRecorder) GetNodeVersion

func (mr *MockClientMockRecorder) GetNodeVersion(ctx interface{}) *gomock.Call

GetNodeVersion indicates an expected call of GetNodeVersion.

func (*MockClientMockRecorder) GetProposerSlashings

func (mr *MockClientMockRecorder) GetProposerSlashings(ctx interface{}) *gomock.Call

GetProposerSlashings indicates an expected call of GetProposerSlashings.

func (*MockClientMockRecorder) GetSpec

func (mr *MockClientMockRecorder) GetSpec(ctx interface{}) *gomock.Call

GetSpec indicates an expected call of GetSpec.

func (*MockClientMockRecorder) GetStateFinalityCheckpoints

func (mr *MockClientMockRecorder) GetStateFinalityCheckpoints(ctx, stateID interface{}) *gomock.Call

GetStateFinalityCheckpoints indicates an expected call of GetStateFinalityCheckpoints.

func (*MockClientMockRecorder) GetStateFork

func (mr *MockClientMockRecorder) GetStateFork(ctx, stateID interface{}) *gomock.Call

GetStateFork indicates an expected call of GetStateFork.

func (*MockClientMockRecorder) GetStateRoot

func (mr *MockClientMockRecorder) GetStateRoot(ctx, stateID interface{}) *gomock.Call

GetStateRoot indicates an expected call of GetStateRoot.

func (*MockClientMockRecorder) GetSyncCommittees

func (mr *MockClientMockRecorder) GetSyncCommittees(ctx, stateID, epoch interface{}) *gomock.Call

GetSyncCommittees indicates an expected call of GetSyncCommittees.

func (*MockClientMockRecorder) GetValidator

func (mr *MockClientMockRecorder) GetValidator(ctx, stateID, validatorID interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockClientMockRecorder) GetValidatorBalances

func (mr *MockClientMockRecorder) GetValidatorBalances(ctx, stateID, validatorIDs interface{}) *gomock.Call

GetValidatorBalances indicates an expected call of GetValidatorBalances.

func (*MockClientMockRecorder) GetValidators

func (mr *MockClientMockRecorder) GetValidators(ctx, stateID, validatorIDs, statuses interface{}) *gomock.Call

GetValidators indicates an expected call of GetValidators.

func (*MockClientMockRecorder) GetVoluntaryExits

func (mr *MockClientMockRecorder) GetVoluntaryExits(ctx interface{}) *gomock.Call

GetVoluntaryExits indicates an expected call of GetVoluntaryExits.

type MockConfigClient

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

MockConfigClient is a mock of ConfigClient interface.

func NewMockConfigClient

func NewMockConfigClient(ctrl *gomock.Controller) *MockConfigClient

NewMockConfigClient creates a new mock instance.

func (*MockConfigClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfigClient) GetSpec

func (m *MockConfigClient) GetSpec(ctx context.Context) (*common.Spec, error)

GetSpec mocks base method.

type MockConfigClientMockRecorder

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

MockConfigClientMockRecorder is the mock recorder for MockConfigClient.

func (*MockConfigClientMockRecorder) GetSpec

func (mr *MockConfigClientMockRecorder) GetSpec(ctx interface{}) *gomock.Call

GetSpec indicates an expected call of GetSpec.

type MockNodeClient

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

MockNodeClient is a mock of NodeClient interface.

func NewMockNodeClient

func NewMockNodeClient(ctrl *gomock.Controller) *MockNodeClient

NewMockNodeClient creates a new mock instance.

func (*MockNodeClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNodeClient) GetNodeVersion

func (m *MockNodeClient) GetNodeVersion(ctx context.Context) (string, error)

GetNodeVersion mocks base method.

type MockNodeClientMockRecorder

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

MockNodeClientMockRecorder is the mock recorder for MockNodeClient.

func (*MockNodeClientMockRecorder) GetNodeVersion

func (mr *MockNodeClientMockRecorder) GetNodeVersion(ctx interface{}) *gomock.Call

GetNodeVersion indicates an expected call of GetNodeVersion.

Jump to

Keyboard shortcuts

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