mock

package
v5.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 8 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 any) *gomock.Call

ConvertRESTAltairBlockToProto indicates an expected call of ConvertRESTAltairBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTBellatrixBlockToProto

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTBellatrixBlockToProto(block any) *gomock.Call

ConvertRESTBellatrixBlockToProto indicates an expected call of ConvertRESTBellatrixBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTCapellaBlockToProto

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTCapellaBlockToProto(block any) *gomock.Call

ConvertRESTCapellaBlockToProto indicates an expected call of ConvertRESTCapellaBlockToProto.

func (*MockBeaconBlockConverterMockRecorder) ConvertRESTPhase0BlockToProto

func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTPhase0BlockToProto(block any) *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) Genesis added in v5.1.0

Genesis mocks base method.

type MockGenesisProviderMockRecorder

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

MockGenesisProviderMockRecorder is the mock recorder for MockGenesisProvider.

func (*MockGenesisProviderMockRecorder) Genesis added in v5.1.0

func (mr *MockGenesisProviderMockRecorder) Genesis(ctx any) *gomock.Call

Genesis indicates an expected call of Genesis.

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 any) error

Get mocks base method.

func (*MockJsonRestHandler) Host added in v5.0.2

func (m *MockJsonRestHandler) Host() string

Host mocks base method.

func (*MockJsonRestHandler) HttpClient added in v5.0.2

func (m *MockJsonRestHandler) HttpClient() *http.Client

HttpClient mocks base method.

func (*MockJsonRestHandler) Post

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

Post mocks base method.

func (*MockJsonRestHandler) SetHost added in v5.1.0

func (m *MockJsonRestHandler) SetHost(host string)

SetHost 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 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockJsonRestHandlerMockRecorder) Host added in v5.1.0

Host indicates an expected call of Host.

func (*MockJsonRestHandlerMockRecorder) HttpClient added in v5.1.0

func (mr *MockJsonRestHandlerMockRecorder) HttpClient() *gomock.Call

HttpClient indicates an expected call of HttpClient.

func (*MockJsonRestHandlerMockRecorder) Post

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

Post indicates an expected call of Post.

func (*MockJsonRestHandlerMockRecorder) SetHost added in v5.1.0

func (mr *MockJsonRestHandlerMockRecorder) SetHost(host any) *gomock.Call

SetHost indicates an expected call of SetHost.

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) StateValidators added in v5.1.0

StateValidators mocks base method.

func (*MockStateValidatorsProvider) StateValidatorsForHead added in v5.1.0

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

StateValidatorsForHead mocks base method.

func (*MockStateValidatorsProvider) StateValidatorsForSlot added in v5.1.0

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

StateValidatorsForSlot mocks base method.

type MockStateValidatorsProviderMockRecorder

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

MockStateValidatorsProviderMockRecorder is the mock recorder for MockStateValidatorsProvider.

func (*MockStateValidatorsProviderMockRecorder) StateValidators added in v5.1.0

func (mr *MockStateValidatorsProviderMockRecorder) StateValidators(arg0, arg1, arg2, arg3 any) *gomock.Call

StateValidators indicates an expected call of StateValidators.

func (*MockStateValidatorsProviderMockRecorder) StateValidatorsForHead added in v5.1.0

func (mr *MockStateValidatorsProviderMockRecorder) StateValidatorsForHead(arg0, arg1, arg2, arg3 any) *gomock.Call

StateValidatorsForHead indicates an expected call of StateValidatorsForHead.

func (*MockStateValidatorsProviderMockRecorder) StateValidatorsForSlot added in v5.1.0

func (mr *MockStateValidatorsProviderMockRecorder) StateValidatorsForSlot(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

StateValidatorsForSlot indicates an expected call of StateValidatorsForSlot.

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) AttesterDuties added in v5.1.0

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

AttesterDuties mocks base method.

func (*MockdutiesProvider) Committees added in v5.1.0

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

Committees mocks base method.

func (*MockdutiesProvider) EXPECT

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

func (*MockdutiesProvider) ProposerDuties added in v5.1.0

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

ProposerDuties mocks base method.

func (*MockdutiesProvider) SyncDuties added in v5.1.0

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

SyncDuties mocks base method.

type MockdutiesProviderMockRecorder

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

MockdutiesProviderMockRecorder is the mock recorder for MockdutiesProvider.

func (*MockdutiesProviderMockRecorder) AttesterDuties added in v5.1.0

func (mr *MockdutiesProviderMockRecorder) AttesterDuties(ctx, epoch, validatorIndices any) *gomock.Call

AttesterDuties indicates an expected call of AttesterDuties.

func (*MockdutiesProviderMockRecorder) Committees added in v5.1.0

func (mr *MockdutiesProviderMockRecorder) Committees(ctx, epoch any) *gomock.Call

Committees indicates an expected call of Committees.

func (*MockdutiesProviderMockRecorder) ProposerDuties added in v5.1.0

func (mr *MockdutiesProviderMockRecorder) ProposerDuties(ctx, epoch any) *gomock.Call

ProposerDuties indicates an expected call of ProposerDuties.

func (*MockdutiesProviderMockRecorder) SyncDuties added in v5.1.0

func (mr *MockdutiesProviderMockRecorder) SyncDuties(ctx, epoch, validatorIndices any) *gomock.Call

SyncDuties indicates an expected call of SyncDuties.

Jump to

Keyboard shortcuts

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