Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockPoetValidator
- type MockPoetValidatorMockRecorder
- type MockPoetValidatorValidateAndStoreMsgCall
- func (c *MockPoetValidatorValidateAndStoreMsgCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockPoetValidatorValidateAndStoreMsgCall
- func (c *MockPoetValidatorValidateAndStoreMsgCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockPoetValidatorValidateAndStoreMsgCall
- func (c *MockPoetValidatorValidateAndStoreMsgCall) Return(arg0 error) *MockPoetValidatorValidateAndStoreMsgCall
- type MockSyncValidator
- type MockSyncValidatorHandleMessageCall
- func (c *MockSyncValidatorHandleMessageCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockSyncValidatorHandleMessageCall
- func (c *MockSyncValidatorHandleMessageCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockSyncValidatorHandleMessageCall
- func (c *MockSyncValidatorHandleMessageCall) Return(arg0 error) *MockSyncValidatorHandleMessageCall
- type MockSyncValidatorMockRecorder
- type Mockhost
- type MockhostIDCall
- type MockhostMockRecorder
- type Mockrequester
- func (m *Mockrequester) EXPECT() *MockrequesterMockRecorder
- func (m *Mockrequester) Request(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 ...string) ([]byte, error)
- func (m *Mockrequester) Run(arg0 context.Context) error
- func (m *Mockrequester) StreamRequest(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, ...) error
- type MockrequesterMockRecorder
- func (mr *MockrequesterMockRecorder) Request(arg0, arg1, arg2 any, arg3 ...any) *MockrequesterRequestCall
- func (mr *MockrequesterMockRecorder) Run(arg0 any) *MockrequesterRunCall
- func (mr *MockrequesterMockRecorder) StreamRequest(arg0, arg1, arg2, arg3 any, arg4 ...any) *MockrequesterStreamRequestCall
- type MockrequesterRequestCall
- func (c *MockrequesterRequestCall) Do(f func(context.Context, p2p.Peer, []byte, ...string) ([]byte, error)) *MockrequesterRequestCall
- func (c *MockrequesterRequestCall) DoAndReturn(f func(context.Context, p2p.Peer, []byte, ...string) ([]byte, error)) *MockrequesterRequestCall
- func (c *MockrequesterRequestCall) Return(arg0 []byte, arg1 error) *MockrequesterRequestCall
- type MockrequesterRunCall
- type MockrequesterStreamRequestCall
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) *MockPoetValidatorValidateAndStoreMsgCall
ValidateAndStoreMsg indicates an expected call of ValidateAndStoreMsg.
type MockPoetValidatorValidateAndStoreMsgCall ¶ added in v1.4.0
MockPoetValidatorValidateAndStoreMsgCall wrap *gomock.Call
func (*MockPoetValidatorValidateAndStoreMsgCall) Do ¶ added in v1.4.0
func (c *MockPoetValidatorValidateAndStoreMsgCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockPoetValidatorValidateAndStoreMsgCall
Do rewrite *gomock.Call.Do
func (*MockPoetValidatorValidateAndStoreMsgCall) DoAndReturn ¶ added in v1.4.0
func (c *MockPoetValidatorValidateAndStoreMsgCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockPoetValidatorValidateAndStoreMsgCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPoetValidatorValidateAndStoreMsgCall) Return ¶ added in v1.4.0
func (c *MockPoetValidatorValidateAndStoreMsgCall) Return(arg0 error) *MockPoetValidatorValidateAndStoreMsgCall
Return rewrite *gomock.Call.Return
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 MockSyncValidatorHandleMessageCall ¶ added in v1.4.0
MockSyncValidatorHandleMessageCall wrap *gomock.Call
func (*MockSyncValidatorHandleMessageCall) Do ¶ added in v1.4.0
func (c *MockSyncValidatorHandleMessageCall) Do(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockSyncValidatorHandleMessageCall
Do rewrite *gomock.Call.Do
func (*MockSyncValidatorHandleMessageCall) DoAndReturn ¶ added in v1.4.0
func (c *MockSyncValidatorHandleMessageCall) DoAndReturn(f func(context.Context, types.Hash32, p2p.Peer, []byte) error) *MockSyncValidatorHandleMessageCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockSyncValidatorHandleMessageCall) Return ¶ added in v1.4.0
func (c *MockSyncValidatorHandleMessageCall) Return(arg0 error) *MockSyncValidatorHandleMessageCall
Return rewrite *gomock.Call.Return
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) *MockSyncValidatorHandleMessageCall
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 MockhostIDCall ¶ added in v1.4.0
MockhostIDCall wrap *gomock.Call
func (*MockhostIDCall) Do ¶ added in v1.4.0
func (c *MockhostIDCall) Do(f func() p2p.Peer) *MockhostIDCall
Do rewrite *gomock.Call.Do
func (*MockhostIDCall) DoAndReturn ¶ added in v1.4.0
func (c *MockhostIDCall) DoAndReturn(f func() p2p.Peer) *MockhostIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockhostIDCall) Return ¶ added in v1.4.0
func (c *MockhostIDCall) Return(arg0 p2p.Peer) *MockhostIDCall
Return rewrite *gomock.Call.Return
type MockhostMockRecorder ¶
type MockhostMockRecorder struct {
// contains filtered or unexported fields
}
MockhostMockRecorder is the mock recorder for Mockhost.
func (*MockhostMockRecorder) ID ¶
func (mr *MockhostMockRecorder) ID() *MockhostIDCall
ID indicates an expected call of ID.
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.
func (*Mockrequester) Request ¶
func (m *Mockrequester) Request(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 ...string) ([]byte, error)
Request mocks base method.
func (*Mockrequester) Run ¶ added in v1.3.0
func (m *Mockrequester) Run(arg0 context.Context) error
Run mocks base method.
func (*Mockrequester) StreamRequest ¶ added in v1.4.1
func (m *Mockrequester) StreamRequest(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 server.StreamRequestCallback, arg4 ...string) error
StreamRequest mocks base method.
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 any, arg3 ...any) *MockrequesterRequestCall
Request indicates an expected call of Request.
func (*MockrequesterMockRecorder) Run ¶ added in v1.3.0
func (mr *MockrequesterMockRecorder) Run(arg0 any) *MockrequesterRunCall
Run indicates an expected call of Run.
func (*MockrequesterMockRecorder) StreamRequest ¶ added in v1.4.1
func (mr *MockrequesterMockRecorder) StreamRequest(arg0, arg1, arg2, arg3 any, arg4 ...any) *MockrequesterStreamRequestCall
StreamRequest indicates an expected call of StreamRequest.
type MockrequesterRequestCall ¶ added in v1.4.0
MockrequesterRequestCall wrap *gomock.Call
func (*MockrequesterRequestCall) Do ¶ added in v1.4.0
func (c *MockrequesterRequestCall) Do(f func(context.Context, p2p.Peer, []byte, ...string) ([]byte, error)) *MockrequesterRequestCall
Do rewrite *gomock.Call.Do
func (*MockrequesterRequestCall) DoAndReturn ¶ added in v1.4.0
func (c *MockrequesterRequestCall) DoAndReturn(f func(context.Context, p2p.Peer, []byte, ...string) ([]byte, error)) *MockrequesterRequestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockrequesterRequestCall) Return ¶ added in v1.4.0
func (c *MockrequesterRequestCall) Return(arg0 []byte, arg1 error) *MockrequesterRequestCall
Return rewrite *gomock.Call.Return
type MockrequesterRunCall ¶ added in v1.4.0
MockrequesterRunCall wrap *gomock.Call
func (*MockrequesterRunCall) Do ¶ added in v1.4.0
func (c *MockrequesterRunCall) Do(f func(context.Context) error) *MockrequesterRunCall
Do rewrite *gomock.Call.Do
func (*MockrequesterRunCall) DoAndReturn ¶ added in v1.4.0
func (c *MockrequesterRunCall) DoAndReturn(f func(context.Context) error) *MockrequesterRunCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockrequesterRunCall) Return ¶ added in v1.4.0
func (c *MockrequesterRunCall) Return(arg0 error) *MockrequesterRunCall
Return rewrite *gomock.Call.Return
type MockrequesterStreamRequestCall ¶ added in v1.4.1
MockrequesterStreamRequestCall wrap *gomock.Call
func (*MockrequesterStreamRequestCall) Do ¶ added in v1.4.1
func (c *MockrequesterStreamRequestCall) Do(f func(context.Context, p2p.Peer, []byte, server.StreamRequestCallback, ...string) error) *MockrequesterStreamRequestCall
Do rewrite *gomock.Call.Do
func (*MockrequesterStreamRequestCall) DoAndReturn ¶ added in v1.4.1
func (c *MockrequesterStreamRequestCall) DoAndReturn(f func(context.Context, p2p.Peer, []byte, server.StreamRequestCallback, ...string) error) *MockrequesterStreamRequestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockrequesterStreamRequestCall) Return ¶ added in v1.4.1
func (c *MockrequesterStreamRequestCall) Return(arg0 error) *MockrequesterStreamRequestCall
Return rewrite *gomock.Call.Return