mock

package
v5.0.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 7 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

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

MockBeaconBlockConverter is a mock of BeaconBlockConverter interface.

func NewMockBeaconBlockConverter

func NewMockBeaconBlockConverter(ctrl *gomock.Controller) *MockBeaconBlockConverter

NewMockBeaconBlockConverter creates a new mock instance.

func (*MockBeaconBlockConverter) ConvertRESTAltairBlockToProto

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

ConvertRESTAltairBlockToProto mocks base method.

func (*MockBeaconBlockConverter) ConvertRESTBellatrixBlockToProto

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

ConvertRESTBellatrixBlockToProto mocks base method.

func (*MockBeaconBlockConverter) ConvertRESTCapellaBlockToProto

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

ConvertRESTCapellaBlockToProto mocks base method.

func (*MockBeaconBlockConverter) ConvertRESTPhase0BlockToProto

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

ConvertRESTPhase0BlockToProto mocks base method.

func (*MockBeaconBlockConverter) EXPECT

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

type MockBeaconBlockConverterMockRecorder

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

MockBeaconBlockConverterMockRecorder is the mock recorder for MockBeaconBlockConverter.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTAltairBlockToProto

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

ConvertRESTAltairBlockToProto indicates an expected call of ConvertRESTAltairBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTBellatrixBlockToProto

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

ConvertRESTBellatrixBlockToProto indicates an expected call of ConvertRESTBellatrixBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTCapellaBlockToProto

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

ConvertRESTCapellaBlockToProto indicates an expected call of ConvertRESTCapellaBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTPhase0BlockToProto

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

ConvertRESTPhase0BlockToProto indicates an expected call of ConvertRESTPhase0BlockToProto.

type MockGenesisProvider

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

MockGenesisProvider is a mock of GenesisProvider interface.

func NewMockGenesisProvider

func NewMockGenesisProvider(ctrl *gomock.Controller) *MockGenesisProvider

NewMockGenesisProvider creates a new mock instance.

func (*MockGenesisProvider) EXPECT

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

func (*MockGenesisProvider) GetGenesis

func (m *MockGenesisProvider) GetGenesis(ctx context.Context) (*structs.Genesis, error)

GetGenesis mocks base method.

type MockGenesisProviderMockRecorder

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

MockGenesisProviderMockRecorder is the mock recorder for MockGenesisProvider.

func (*MockGenesisProviderMockRecorder) GetGenesis

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

GetGenesis indicates an expected call of GetGenesis.

type MockJsonRestHandler

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

MockJsonRestHandler is a mock of JsonRestHandler interface.

func NewMockJsonRestHandler

func NewMockJsonRestHandler(ctrl *gomock.Controller) *MockJsonRestHandler

NewMockJsonRestHandler creates a new mock instance.

func (*MockJsonRestHandler) EXPECT

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

func (*MockJsonRestHandler) Get

func (m *MockJsonRestHandler) Get(ctx context.Context, endpoint string, resp interface{}) error

Get mocks base method.

func (*MockJsonRestHandler) Post

func (m *MockJsonRestHandler) Post(ctx context.Context, endpoint string, headers map[string]string, data *bytes.Buffer, resp interface{}) error

Post mocks base method.

type MockJsonRestHandlerMockRecorder

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

MockJsonRestHandlerMockRecorder is the mock recorder for MockJsonRestHandler.

func (*MockJsonRestHandlerMockRecorder) Get

func (mr *MockJsonRestHandlerMockRecorder) Get(ctx, endpoint, resp interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockJsonRestHandlerMockRecorder) Post

func (mr *MockJsonRestHandlerMockRecorder) Post(ctx, endpoint, headers, data, resp interface{}) *gomock.Call

Post indicates an expected call of Post.

type MockStateValidatorsProvider

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

MockStateValidatorsProvider is a mock of StateValidatorsProvider interface.

func NewMockStateValidatorsProvider

func NewMockStateValidatorsProvider(ctrl *gomock.Controller) *MockStateValidatorsProvider

NewMockStateValidatorsProvider creates a new mock instance.

func (*MockStateValidatorsProvider) EXPECT

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

func (*MockStateValidatorsProvider) GetStateValidators

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

GetStateValidators mocks base method.

func (*MockStateValidatorsProvider) GetStateValidatorsForHead

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

GetStateValidatorsForHead mocks base method.

func (*MockStateValidatorsProvider) GetStateValidatorsForSlot

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

GetStateValidatorsForSlot mocks base method.

type MockStateValidatorsProviderMockRecorder

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

MockStateValidatorsProviderMockRecorder is the mock recorder for MockStateValidatorsProvider.

func (*MockStateValidatorsProviderMockRecorder) GetStateValidators

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

GetStateValidators indicates an expected call of GetStateValidators.

func (*MockStateValidatorsProviderMockRecorder) GetStateValidatorsForHead

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

GetStateValidatorsForHead indicates an expected call of GetStateValidatorsForHead.

func (*MockStateValidatorsProviderMockRecorder) GetStateValidatorsForSlot

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) ([]*structs.AttesterDuty, error)

GetAttesterDuties mocks base method.

func (*MockdutiesProvider) GetCommittees

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

GetCommittees mocks base method.

func (*MockdutiesProvider) GetProposerDuties

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

GetProposerDuties mocks base method.

func (*MockdutiesProvider) GetSyncDuties

func (m *MockdutiesProvider) GetSyncDuties(ctx context.Context, epoch primitives.Epoch, validatorIndices []primitives.ValidatorIndex) ([]*structs.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