Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type Mockcounter
- type MockcounterIncCall
- type MockcounterMockRecorder
- type Mockfetcher
- func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
- func (m *Mockfetcher) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error
- func (m *Mockfetcher) GetMaliciousIDs(arg0 context.Context, arg1 p2p.Peer) ([]types.NodeID, error)
- func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer
- type MockfetcherGetMalfeasanceProofsCall
- func (c *MockfetcherGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
- func (c *MockfetcherGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
- func (c *MockfetcherGetMalfeasanceProofsCall) Return(arg0 error) *MockfetcherGetMalfeasanceProofsCall
- type MockfetcherGetMaliciousIDsCall
- func (c *MockfetcherGetMaliciousIDsCall) Do(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
- func (c *MockfetcherGetMaliciousIDsCall) DoAndReturn(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
- func (c *MockfetcherGetMaliciousIDsCall) Return(arg0 []types.NodeID, arg1 error) *MockfetcherGetMaliciousIDsCall
- type MockfetcherMockRecorder
- func (mr *MockfetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockfetcherGetMalfeasanceProofsCall
- func (mr *MockfetcherMockRecorder) GetMaliciousIDs(arg0, arg1 any) *MockfetcherGetMaliciousIDsCall
- func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *MockfetcherSelectBestShuffledCall
- type MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetcherSelectBestShuffledCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockcounter ¶
type Mockcounter struct {
// contains filtered or unexported fields
}
Mockcounter is a mock of counter interface.
func NewMockcounter ¶
func NewMockcounter(ctrl *gomock.Controller) *Mockcounter
NewMockcounter creates a new mock instance.
func (*Mockcounter) EXPECT ¶
func (m *Mockcounter) EXPECT() *MockcounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockcounterIncCall ¶
MockcounterIncCall wrap *gomock.Call
func (*MockcounterIncCall) Do ¶
func (c *MockcounterIncCall) Do(f func()) *MockcounterIncCall
Do rewrite *gomock.Call.Do
func (*MockcounterIncCall) DoAndReturn ¶
func (c *MockcounterIncCall) DoAndReturn(f func()) *MockcounterIncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockcounterIncCall) Return ¶
func (c *MockcounterIncCall) Return() *MockcounterIncCall
Return rewrite *gomock.Call.Return
type MockcounterMockRecorder ¶
type MockcounterMockRecorder struct {
// contains filtered or unexported fields
}
MockcounterMockRecorder is the mock recorder for Mockcounter.
func (*MockcounterMockRecorder) Inc ¶
func (mr *MockcounterMockRecorder) Inc() *MockcounterIncCall
Inc indicates an expected call of Inc.
type Mockfetcher ¶
type Mockfetcher struct {
// contains filtered or unexported fields
}
Mockfetcher is a mock of fetcher interface.
func NewMockfetcher ¶
func NewMockfetcher(ctrl *gomock.Controller) *Mockfetcher
NewMockfetcher creates a new mock instance.
func (*Mockfetcher) EXPECT ¶
func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockfetcher) GetMalfeasanceProofs ¶
GetMalfeasanceProofs mocks base method.
func (*Mockfetcher) GetMaliciousIDs ¶
GetMaliciousIDs mocks base method.
func (*Mockfetcher) SelectBestShuffled ¶
func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer
SelectBestShuffled mocks base method.
type MockfetcherGetMalfeasanceProofsCall ¶
MockfetcherGetMalfeasanceProofsCall wrap *gomock.Call
func (*MockfetcherGetMalfeasanceProofsCall) Do ¶
func (c *MockfetcherGetMalfeasanceProofsCall) Do(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetMalfeasanceProofsCall) DoAndReturn ¶
func (c *MockfetcherGetMalfeasanceProofsCall) DoAndReturn(f func(context.Context, []types.NodeID) error) *MockfetcherGetMalfeasanceProofsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetMalfeasanceProofsCall) Return ¶
func (c *MockfetcherGetMalfeasanceProofsCall) Return(arg0 error) *MockfetcherGetMalfeasanceProofsCall
Return rewrite *gomock.Call.Return
type MockfetcherGetMaliciousIDsCall ¶
MockfetcherGetMaliciousIDsCall wrap *gomock.Call
func (*MockfetcherGetMaliciousIDsCall) Do ¶
func (c *MockfetcherGetMaliciousIDsCall) Do(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetMaliciousIDsCall) DoAndReturn ¶
func (c *MockfetcherGetMaliciousIDsCall) DoAndReturn(f func(context.Context, p2p.Peer) ([]types.NodeID, error)) *MockfetcherGetMaliciousIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetMaliciousIDsCall) Return ¶
func (c *MockfetcherGetMaliciousIDsCall) Return(arg0 []types.NodeID, arg1 error) *MockfetcherGetMaliciousIDsCall
Return rewrite *gomock.Call.Return
type MockfetcherMockRecorder ¶
type MockfetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockfetcherMockRecorder is the mock recorder for Mockfetcher.
func (*MockfetcherMockRecorder) GetMalfeasanceProofs ¶
func (mr *MockfetcherMockRecorder) GetMalfeasanceProofs(arg0, arg1 any) *MockfetcherGetMalfeasanceProofsCall
GetMalfeasanceProofs indicates an expected call of GetMalfeasanceProofs.
func (*MockfetcherMockRecorder) GetMaliciousIDs ¶
func (mr *MockfetcherMockRecorder) GetMaliciousIDs(arg0, arg1 any) *MockfetcherGetMaliciousIDsCall
GetMaliciousIDs indicates an expected call of GetMaliciousIDs.
func (*MockfetcherMockRecorder) SelectBestShuffled ¶
func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *MockfetcherSelectBestShuffledCall
SelectBestShuffled indicates an expected call of SelectBestShuffled.
type MockfetcherSelectBestShuffledCall ¶
MockfetcherSelectBestShuffledCall wrap *gomock.Call
func (*MockfetcherSelectBestShuffledCall) Do ¶
func (c *MockfetcherSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
Do rewrite *gomock.Call.Do
func (*MockfetcherSelectBestShuffledCall) DoAndReturn ¶
func (c *MockfetcherSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherSelectBestShuffledCall) Return ¶
func (c *MockfetcherSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetcherSelectBestShuffledCall
Return rewrite *gomock.Call.Return