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 (m *MockJsonRestHandler) Host() string
- func (m *MockJsonRestHandler) HttpClient() *http.Client
- func (m *MockJsonRestHandler) Post(ctx context.Context, endpoint string, headers map[string]string, ...) error
- func (m *MockJsonRestHandler) SetHost(host string)
- type MockJsonRestHandlerMockRecorder
- func (mr *MockJsonRestHandlerMockRecorder) Get(ctx, endpoint, resp any) *gomock.Call
- func (mr *MockJsonRestHandlerMockRecorder) Host() *gomock.Call
- func (mr *MockJsonRestHandlerMockRecorder) HttpClient() *gomock.Call
- func (mr *MockJsonRestHandlerMockRecorder) Post(ctx, endpoint, headers, data, resp any) *gomock.Call
- func (mr *MockJsonRestHandlerMockRecorder) SetHost(host any) *gomock.Call
- type MockStateValidatorsProvider
- func (m *MockStateValidatorsProvider) EXPECT() *MockStateValidatorsProviderMockRecorder
- func (m *MockStateValidatorsProvider) StateValidators(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, ...) (*structs.GetValidatorsResponse, error)
- func (m *MockStateValidatorsProvider) StateValidatorsForHead(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, ...) (*structs.GetValidatorsResponse, error)
- func (m *MockStateValidatorsProvider) StateValidatorsForSlot(arg0 context.Context, arg1 primitives.Slot, arg2 []string, ...) (*structs.GetValidatorsResponse, error)
- type MockStateValidatorsProviderMockRecorder
- func (mr *MockStateValidatorsProviderMockRecorder) StateValidators(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStateValidatorsProviderMockRecorder) StateValidatorsForHead(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockStateValidatorsProviderMockRecorder) StateValidatorsForSlot(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- type MockdutiesProvider
- func (m *MockdutiesProvider) AttesterDuties(ctx context.Context, epoch primitives.Epoch, ...) ([]*structs.AttesterDuty, error)
- func (m *MockdutiesProvider) Committees(ctx context.Context, epoch primitives.Epoch) ([]*structs.Committee, error)
- func (m *MockdutiesProvider) EXPECT() *MockdutiesProviderMockRecorder
- func (m *MockdutiesProvider) ProposerDuties(ctx context.Context, epoch primitives.Epoch) ([]*structs.ProposerDuty, error)
- func (m *MockdutiesProvider) SyncDuties(ctx context.Context, epoch primitives.Epoch, ...) ([]*structs.SyncCommitteeDuty, error)
- type MockdutiesProviderMockRecorder
- func (mr *MockdutiesProviderMockRecorder) AttesterDuties(ctx, epoch, validatorIndices any) *gomock.Call
- func (mr *MockdutiesProviderMockRecorder) Committees(ctx, epoch any) *gomock.Call
- func (mr *MockdutiesProviderMockRecorder) ProposerDuties(ctx, epoch any) *gomock.Call
- func (mr *MockdutiesProviderMockRecorder) SyncDuties(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.
type MockGenesisProviderMockRecorder ¶
type MockGenesisProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockGenesisProviderMockRecorder is the mock recorder for MockGenesisProvider.
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 (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
func (mr *MockJsonRestHandlerMockRecorder) Host() *gomock.Call
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.
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) StateValidators ¶ added in v5.1.0
func (m *MockStateValidatorsProvider) StateValidators(arg0 context.Context, arg1 []string, arg2 []primitives.ValidatorIndex, arg3 []string) (*structs.GetValidatorsResponse, error)
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 ¶
func (m *MockdutiesProvider) EXPECT() *MockdutiesProviderMockRecorder
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.