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 ¶
- type MockBeaconBlockConverter
- func (m *MockBeaconBlockConverter) ConvertRESTAltairBlockToProto(block *structs.BeaconBlockAltair) (*eth.BeaconBlockAltair, error)
- func (m *MockBeaconBlockConverter) ConvertRESTBellatrixBlockToProto(block *structs.BeaconBlockBellatrix) (*eth.BeaconBlockBellatrix, error)
- func (m *MockBeaconBlockConverter) ConvertRESTCapellaBlockToProto(block *structs.BeaconBlockCapella) (*eth.BeaconBlockCapella, error)
- func (m *MockBeaconBlockConverter) ConvertRESTPhase0BlockToProto(block *structs.BeaconBlock) (*eth.BeaconBlock, error)
- func (m *MockBeaconBlockConverter) EXPECT() *MockBeaconBlockConverterMockRecorder
- type MockBeaconBlockConverterMockRecorder
- func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTAltairBlockToProto(block any) *gomock.Call
- func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTBellatrixBlockToProto(block any) *gomock.Call
- func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTCapellaBlockToProto(block any) *gomock.Call
- func (mr *MockBeaconBlockConverterMockRecorder) ConvertRESTPhase0BlockToProto(block any) *gomock.Call
- type MockGenesisProvider
- type MockGenesisProviderMockRecorder
- type MockJsonRestHandler
- func (m *MockJsonRestHandler) EXPECT() *MockJsonRestHandlerMockRecorder
- func (m *MockJsonRestHandler) Get(ctx context.Context, endpoint string, resp any) error
- func (mr *MockJsonRestHandler) Host() string
- func (mr *MockJsonRestHandler) HttpClient() *http.Client
- func (m *MockJsonRestHandler) Post(ctx context.Context, endpoint string, headers map[string]string, ...) error
- type MockJsonRestHandlerMockRecorder
- type MockStateValidatorsProvider
- func (m *MockStateValidatorsProvider) EXPECT() *MockStateValidatorsProviderMockRecorder
- func (m *MockStateValidatorsProvider) GetStateValidators(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, ...) (*structs.GetValidatorsResponse, error)
- func (m *MockStateValidatorsProvider) GetStateValidatorsForHead(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, ...) (*structs.GetValidatorsResponse, error)
- func (m *MockStateValidatorsProvider) GetStateValidatorsForSlot(arg0 context.Context, arg1 primitives.Slot, arg2 []string, ...) (*structs.GetValidatorsResponse, error)
- type MockStateValidatorsProviderMockRecorder
- func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidators(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidatorsForHead(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidatorsForSlot(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- type MockdutiesProvider
- func (m *MockdutiesProvider) EXPECT() *MockdutiesProviderMockRecorder
- func (m *MockdutiesProvider) GetAttesterDuties(ctx context.Context, epoch primitives.Epoch, ...) ([]*structs.AttesterDuty, error)
- func (m *MockdutiesProvider) GetCommittees(ctx context.Context, epoch primitives.Epoch) ([]*structs.Committee, error)
- func (m *MockdutiesProvider) GetProposerDuties(ctx context.Context, epoch primitives.Epoch) ([]*structs.ProposerDuty, error)
- func (m *MockdutiesProvider) GetSyncDuties(ctx context.Context, epoch primitives.Epoch, ...) ([]*structs.SyncCommitteeDuty, error)
- type MockdutiesProviderMockRecorder
- func (mr *MockdutiesProviderMockRecorder) GetAttesterDuties(ctx, epoch, validatorIndices any) *gomock.Call
- func (mr *MockdutiesProviderMockRecorder) GetCommittees(ctx, epoch any) *gomock.Call
- func (mr *MockdutiesProviderMockRecorder) GetProposerDuties(ctx, epoch any) *gomock.Call
- func (mr *MockdutiesProviderMockRecorder) GetSyncDuties(ctx, epoch, validatorIndices any) *gomock.Call
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 ¶
func (m *MockBeaconBlockConverter) EXPECT() *MockBeaconBlockConverterMockRecorder
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 ¶
func (m *MockGenesisProvider) EXPECT() *MockGenesisProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGenesisProvider) GetGenesis ¶
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 any) *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 ¶
func (m *MockJsonRestHandler) EXPECT() *MockJsonRestHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJsonRestHandler) Host ¶ added in v5.0.2
func (mr *MockJsonRestHandler) Host() string
func (*MockJsonRestHandler) HttpClient ¶ added in v5.0.2
func (mr *MockJsonRestHandler) HttpClient() *http.Client
type MockJsonRestHandlerMockRecorder ¶
type MockJsonRestHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockJsonRestHandlerMockRecorder is the mock recorder for MockJsonRestHandler.
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 ¶
func (m *MockStateValidatorsProvider) EXPECT() *MockStateValidatorsProviderMockRecorder
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 any) *gomock.Call
GetStateValidators indicates an expected call of GetStateValidators.
func (*MockStateValidatorsProviderMockRecorder) GetStateValidatorsForHead ¶
func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidatorsForHead(arg0, arg1, arg2, arg3 any) *gomock.Call
GetStateValidatorsForHead indicates an expected call of GetStateValidatorsForHead.
func (*MockStateValidatorsProviderMockRecorder) GetStateValidatorsForSlot ¶
func (mr *MockStateValidatorsProviderMockRecorder) GetStateValidatorsForSlot(arg0, arg1, arg2, arg3, arg4 any) *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 ¶
func (m *MockdutiesProvider) EXPECT() *MockdutiesProviderMockRecorder
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 any) *gomock.Call
GetAttesterDuties indicates an expected call of GetAttesterDuties.
func (*MockdutiesProviderMockRecorder) GetCommittees ¶
func (mr *MockdutiesProviderMockRecorder) GetCommittees(ctx, epoch any) *gomock.Call
GetCommittees indicates an expected call of GetCommittees.
func (*MockdutiesProviderMockRecorder) GetProposerDuties ¶
func (mr *MockdutiesProviderMockRecorder) GetProposerDuties(ctx, epoch any) *gomock.Call
GetProposerDuties indicates an expected call of GetProposerDuties.
func (*MockdutiesProviderMockRecorder) GetSyncDuties ¶
func (mr *MockdutiesProviderMockRecorder) GetSyncDuties(ctx, epoch, validatorIndices any) *gomock.Call
GetSyncDuties indicates an expected call of GetSyncDuties.