mock

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

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 MockBeaconBlockConverter added in v4.2.0

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

MockBeaconBlockConverter is a mock of BeaconBlockConverter interface.

func NewMockBeaconBlockConverter added in v4.2.0

func NewMockBeaconBlockConverter(ctrl *gomock.Controller) *MockBeaconBlockConverter

NewMockBeaconBlockConverter creates a new mock instance.

func (*MockBeaconBlockConverter) ConvertRESTAltairBlockToProto added in v4.2.0

func (m *MockBeaconBlockConverter) ConvertRESTAltairBlockToProto(block *shared.BeaconBlockAltair) (*eth.BeaconBlockAltair, error)

ConvertRESTAltairBlockToProto mocks base method.

func (*MockBeaconBlockConverter) ConvertRESTBellatrixBlockToProto added in v4.2.0

func (m *MockBeaconBlockConverter) ConvertRESTBellatrixBlockToProto(block *shared.BeaconBlockBellatrix) (*eth.BeaconBlockBellatrix, error)

ConvertRESTBellatrixBlockToProto mocks base method.

func (*MockBeaconBlockConverter) ConvertRESTCapellaBlockToProto added in v4.2.0

func (m *MockBeaconBlockConverter) ConvertRESTCapellaBlockToProto(block *shared.BeaconBlockCapella) (*eth.BeaconBlockCapella, error)

ConvertRESTCapellaBlockToProto mocks base method.

func (*MockBeaconBlockConverter) ConvertRESTPhase0BlockToProto added in v4.2.0

func (m *MockBeaconBlockConverter) ConvertRESTPhase0BlockToProto(block *shared.BeaconBlock) (*eth.BeaconBlock, error)

ConvertRESTPhase0BlockToProto mocks base method.

func (*MockBeaconBlockConverter) EXPECT added in v4.2.0

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

type MockBeaconBlockConverterMockRecorder added in v4.2.0

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

MockBeaconBlockConverterMockRecorder is the mock recorder for MockBeaconBlockConverter.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTAltairBlockToProto added in v4.2.0

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTAltairBlockToProto(block interface{}) *gomock.Call

ConvertRESTAltairBlockToProto indicates an expected call of ConvertRESTAltairBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTBellatrixBlockToProto added in v4.2.0

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTBellatrixBlockToProto(block interface{}) *gomock.Call

ConvertRESTBellatrixBlockToProto indicates an expected call of ConvertRESTBellatrixBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTCapellaBlockToProto added in v4.2.0

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTCapellaBlockToProto(block interface{}) *gomock.Call

ConvertRESTCapellaBlockToProto indicates an expected call of ConvertRESTCapellaBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTPhase0BlockToProto added in v4.2.0

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTPhase0BlockToProto(block interface{}) *gomock.Call

ConvertRESTPhase0BlockToProto indicates an expected call of ConvertRESTPhase0BlockToProto.

type MockGenesisProvider added in v4.2.0

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

MockGenesisProvider is a mock of GenesisProvider interface.

func NewMockGenesisProvider added in v4.2.0

func NewMockGenesisProvider(ctrl *gomock.Controller) *MockGenesisProvider

NewMockGenesisProvider creates a new mock instance.

func (*MockGenesisProvider) EXPECT added in v4.2.0

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

func (*MockGenesisProvider) GetGenesis added in v4.2.0

func (m *MockGenesisProvider) GetGenesis(arg0 context.Context) (*beacon.Genesis, error)

GetGenesis mocks base method.

type MockGenesisProviderMockRecorder added in v4.2.0

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

MockGenesisProviderMockRecorder is the mock recorder for MockGenesisProvider.

func (*MockGenesisProviderMockRecorder) GetGenesis added in v4.2.0

func (mr *MockGenesisProviderMockRecorder) GetGenesis(arg0 interface{}) *gomock.Call

GetGenesis indicates an expected call of GetGenesis.

type MockJsonRestHandler added in v4.2.0

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

MockJsonRestHandler is a mock of JsonRestHandler interface.

func NewMockJsonRestHandler added in v4.2.0

func NewMockJsonRestHandler(ctrl *gomock.Controller) *MockJsonRestHandler

NewMockJsonRestHandler creates a new mock instance.

func (*MockJsonRestHandler) EXPECT added in v4.2.0

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

func (*MockJsonRestHandler) Get added in v4.2.0

func (m *MockJsonRestHandler) Get(arg0 context.Context, arg1 string, arg2 interface{}) error

Get mocks base method.

func (*MockJsonRestHandler) Post added in v4.2.0

func (m *MockJsonRestHandler) Post(arg0 context.Context, arg1 string, arg2 map[string]string, arg3 *bytes.Buffer, arg4 interface{}) error

Post mocks base method.

type MockJsonRestHandlerMockRecorder added in v4.2.0

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

MockJsonRestHandlerMockRecorder is the mock recorder for MockJsonRestHandler.

func (*MockJsonRestHandlerMockRecorder) Get added in v4.2.0

func (mr *MockJsonRestHandlerMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockJsonRestHandlerMockRecorder) Post added in v4.2.0

func (mr *MockJsonRestHandlerMockRecorder) Post(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Post indicates an expected call of Post.

type MockStateValidatorsProvider added in v4.2.0

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

MockStateValidatorsProvider is a mock of StateValidatorsProvider interface.

func NewMockStateValidatorsProvider added in v4.2.0

func NewMockStateValidatorsProvider(ctrl *gomock.Controller) *MockStateValidatorsProvider

NewMockStateValidatorsProvider creates a new mock instance.

func (*MockStateValidatorsProvider) EXPECT added in v4.2.0

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

func (*MockStateValidatorsProvider) GetStateValidators added in v4.2.0

func (m *MockStateValidatorsProvider) GetStateValidators(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, arg3 []string) (*beacon.GetValidatorsResponse, error)

GetStateValidators mocks base method.

func (*MockStateValidatorsProvider) GetStateValidatorsForHead added in v4.2.0

func (m *MockStateValidatorsProvider) GetStateValidatorsForHead(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, arg3 []string) (*beacon.GetValidatorsResponse, error)

GetStateValidatorsForHead mocks base method.

func (*MockStateValidatorsProvider) GetStateValidatorsForSlot added in v4.2.0

func (m *MockStateValidatorsProvider) GetStateValidatorsForSlot(arg0 context.Context, arg1 primitives.Slot, arg2 []string, arg3 []primitives.ValidatorIndex, arg4 []string) (*beacon.GetValidatorsResponse, error)

GetStateValidatorsForSlot mocks base method.

type MockStateValidatorsProviderMockRecorder added in v4.2.0

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

MockStateValidatorsProviderMockRecorder is the mock recorder for MockStateValidatorsProvider.

func (*MockStateValidatorsProviderMockRecorder) GetStateValidators added in v4.2.0

func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidators(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetStateValidators indicates an expected call of GetStateValidators.

func (*MockStateValidatorsProviderMockRecorder) GetStateValidatorsForHead added in v4.2.0

func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidatorsForHead(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetStateValidatorsForHead indicates an expected call of GetStateValidatorsForHead.

func (*MockStateValidatorsProviderMockRecorder) GetStateValidatorsForSlot added in v4.2.0

func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidatorsForSlot(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetStateValidatorsForSlot indicates an expected call of GetStateValidatorsForSlot.

type MockdutiesProvider

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

MockdutiesProvider is a mock of dutiesProvider interface.

func NewMockdutiesProvider

func NewMockdutiesProvider(ctrl *gomock.Controller) *MockdutiesProvider

NewMockdutiesProvider creates a new mock instance.

func (*MockdutiesProvider) EXPECT

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

func (*MockdutiesProvider) GetAttesterDuties

func (m *MockdutiesProvider) GetAttesterDuties(ctx context.Context, epoch primitives.Epoch, validatorIndices []primitives.ValidatorIndex) ([]*validator.AttesterDuty, error)

GetAttesterDuties mocks base method.

func (*MockdutiesProvider) GetCommittees

func (m *MockdutiesProvider) GetCommittees(ctx context.Context, epoch primitives.Epoch) ([]*shared.Committee, error)

GetCommittees mocks base method.

func (*MockdutiesProvider) GetProposerDuties

func (m *MockdutiesProvider) GetProposerDuties(ctx context.Context, epoch primitives.Epoch) ([]*validator.ProposerDuty, error)

GetProposerDuties mocks base method.

func (*MockdutiesProvider) GetSyncDuties

func (m *MockdutiesProvider) GetSyncDuties(ctx context.Context, epoch primitives.Epoch, validatorIndices []primitives.ValidatorIndex) ([]*validator.SyncCommitteeDuty, error)

GetSyncDuties mocks base method.

type MockdutiesProviderMockRecorder

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

MockdutiesProviderMockRecorder is the mock recorder for MockdutiesProvider.

func (*MockdutiesProviderMockRecorder) GetAttesterDuties

func (mr *MockdutiesProviderMockRecorder) GetAttesterDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call

GetAttesterDuties indicates an expected call of GetAttesterDuties.

func (*MockdutiesProviderMockRecorder) GetCommittees

func (mr *MockdutiesProviderMockRecorder) GetCommittees(ctx, epoch interface{}) *gomock.Call

GetCommittees indicates an expected call of GetCommittees.

func (*MockdutiesProviderMockRecorder) GetProposerDuties

func (mr *MockdutiesProviderMockRecorder) GetProposerDuties(ctx, epoch interface{}) *gomock.Call

GetProposerDuties indicates an expected call of GetProposerDuties.

func (*MockdutiesProviderMockRecorder) GetSyncDuties

func (mr *MockdutiesProviderMockRecorder) GetSyncDuties(ctx, epoch, validatorIndices interface{}) *gomock.Call

GetSyncDuties indicates an expected call of GetSyncDuties.

Jump to

Keyboard shortcuts

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