Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./interface.go
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./interface.go
Package mocks is a generated GoMock package.
Index ¶
- type MockPoetValidator
- type MockPoetValidatorMockRecorder
- type MockSyncValidator
- type MockSyncValidatorMockRecorder
- type Mockhost
- type MockhostMockRecorder
- type MockmeshProvider
- type MockmeshProviderMockRecorder
- type Mockrequester
- type MockrequesterMockRecorder
- type PoetValidatorValidateAndStoreMsgCall
- func (c *PoetValidatorValidateAndStoreMsgCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *PoetValidatorValidateAndStoreMsgCall
- func (c *PoetValidatorValidateAndStoreMsgCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *PoetValidatorValidateAndStoreMsgCall
- func (c *PoetValidatorValidateAndStoreMsgCall) Return(arg0 error) *PoetValidatorValidateAndStoreMsgCall
- type SyncValidatorHandleMessageCall
- func (c *SyncValidatorHandleMessageCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *SyncValidatorHandleMessageCall
- func (c *SyncValidatorHandleMessageCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *SyncValidatorHandleMessageCall
- func (c *SyncValidatorHandleMessageCall) Return(arg0 error) *SyncValidatorHandleMessageCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPoetValidator ¶
type MockPoetValidator struct {
// contains filtered or unexported fields
}
MockPoetValidator is a mock of PoetValidator interface.
func NewMockPoetValidator ¶
func NewMockPoetValidator(ctrl *gomock.Controller) *MockPoetValidator
NewMockPoetValidator creates a new mock instance.
func (*MockPoetValidator) EXPECT ¶
func (m *MockPoetValidator) EXPECT() *MockPoetValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPoetValidatorMockRecorder ¶
type MockPoetValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockPoetValidatorMockRecorder is the mock recorder for MockPoetValidator.
func (*MockPoetValidatorMockRecorder) ValidateAndStoreMsg ¶
func (mr *MockPoetValidatorMockRecorder) ValidateAndStoreMsg(arg0, arg1, arg2, arg3 any) *PoetValidatorValidateAndStoreMsgCall
ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.
type MockSyncValidator ¶
type MockSyncValidator struct {
// contains filtered or unexported fields
}
MockSyncValidator is a mock of SyncValidator interface.
func NewMockSyncValidator ¶
func NewMockSyncValidator(ctrl *gomock.Controller) *MockSyncValidator
NewMockSyncValidator creates a new mock instance.
func (*MockSyncValidator) EXPECT ¶
func (m *MockSyncValidator) EXPECT() *MockSyncValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSyncValidatorMockRecorder ¶
type MockSyncValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockSyncValidatorMockRecorder is the mock recorder for MockSyncValidator.
func (*MockSyncValidatorMockRecorder) HandleMessage ¶
func (mr *MockSyncValidatorMockRecorder) HandleMessage(arg0, arg1, arg2, arg3 any) *SyncValidatorHandleMessageCall
HandleMessage indicates an expected call of HandleMessage.
type Mockhost ¶
type Mockhost struct {
// contains filtered or unexported fields
}
Mockhost is a mock of host interface.
func NewMockhost ¶
func NewMockhost(ctrl *gomock.Controller) *Mockhost
NewMockhost creates a new mock instance.
func (*Mockhost) EXPECT ¶
func (m *Mockhost) EXPECT() *MockhostMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockhostMockRecorder ¶
type MockhostMockRecorder struct {
// contains filtered or unexported fields
}
MockhostMockRecorder is the mock recorder for Mockhost.
func (*MockhostMockRecorder) ID ¶
func (mr *MockhostMockRecorder) ID() *hostIDCall
ID indicates an expected call of ID.
type MockmeshProvider ¶
type MockmeshProvider struct {
// contains filtered or unexported fields
}
MockmeshProvider is a mock of meshProvider interface.
func NewMockmeshProvider ¶
func NewMockmeshProvider(ctrl *gomock.Controller) *MockmeshProvider
NewMockmeshProvider creates a new mock instance.
func (*MockmeshProvider) EXPECT ¶
func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockmeshProvider) LastVerified ¶
func (m *MockmeshProvider) LastVerified() types.LayerID
LastVerified mocks base method.
type MockmeshProviderMockRecorder ¶
type MockmeshProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.
func (*MockmeshProviderMockRecorder) LastVerified ¶
func (mr *MockmeshProviderMockRecorder) LastVerified() *meshProviderLastVerifiedCall
LastVerified indicates an expected call of LastVerified.
type Mockrequester ¶
type Mockrequester struct {
// contains filtered or unexported fields
}
Mockrequester is a mock of requester interface.
func NewMockrequester ¶
func NewMockrequester(ctrl *gomock.Controller) *Mockrequester
NewMockrequester creates a new mock instance.
func (*Mockrequester) EXPECT ¶
func (m *Mockrequester) EXPECT() *MockrequesterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockrequesterMockRecorder ¶
type MockrequesterMockRecorder struct {
// contains filtered or unexported fields
}
MockrequesterMockRecorder is the mock recorder for Mockrequester.
func (*MockrequesterMockRecorder) Request ¶
func (mr *MockrequesterMockRecorder) Request(arg0, arg1, arg2, arg3, arg4 any) *requesterRequestCall
Request indicates an expected call of Request.
type PoetValidatorValidateAndStoreMsgCall ¶ added in v1.1.5
PoetValidatorValidateAndStoreMsgCall wrap *gomock.Call
func (*PoetValidatorValidateAndStoreMsgCall) Do ¶ added in v1.1.5
func (c *PoetValidatorValidateAndStoreMsgCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *PoetValidatorValidateAndStoreMsgCall
Do rewrite *gomock.Call.Do
func (*PoetValidatorValidateAndStoreMsgCall) DoAndReturn ¶ added in v1.1.5
func (c *PoetValidatorValidateAndStoreMsgCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *PoetValidatorValidateAndStoreMsgCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*PoetValidatorValidateAndStoreMsgCall) Return ¶ added in v1.1.5
func (c *PoetValidatorValidateAndStoreMsgCall) Return(arg0 error) *PoetValidatorValidateAndStoreMsgCall
Return rewrite *gomock.Call.Return
type SyncValidatorHandleMessageCall ¶ added in v1.1.5
SyncValidatorHandleMessageCall wrap *gomock.Call
func (*SyncValidatorHandleMessageCall) Do ¶ added in v1.1.5
func (c *SyncValidatorHandleMessageCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *SyncValidatorHandleMessageCall
Do rewrite *gomock.Call.Do
func (*SyncValidatorHandleMessageCall) DoAndReturn ¶ added in v1.1.5
func (c *SyncValidatorHandleMessageCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *SyncValidatorHandleMessageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*SyncValidatorHandleMessageCall) Return ¶ added in v1.1.5
func (c *SyncValidatorHandleMessageCall) Return(arg0 error) *SyncValidatorHandleMessageCall
Return rewrite *gomock.Call.Return