mocks

package
v1.5.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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.

func (*Mockcounter) Inc

func (m *Mockcounter) Inc()

Inc mocks base method.

type MockcounterIncCall

type MockcounterIncCall struct {
	*gomock.Call
}

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

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

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

func (m *Mockfetcher) GetMalfeasanceProofs(arg0 context.Context, arg1 []types.NodeID) error

GetMalfeasanceProofs mocks base method.

func (*Mockfetcher) GetMaliciousIDs

func (m *Mockfetcher) GetMaliciousIDs(arg0 context.Context, arg1 p2p.Peer) ([]types.NodeID, error)

GetMaliciousIDs mocks base method.

func (*Mockfetcher) SelectBestShuffled

func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer

SelectBestShuffled mocks base method.

type MockfetcherGetMalfeasanceProofsCall

type MockfetcherGetMalfeasanceProofsCall struct {
	*gomock.Call
}

MockfetcherGetMalfeasanceProofsCall wrap *gomock.Call

func (*MockfetcherGetMalfeasanceProofsCall) Do

Do rewrite *gomock.Call.Do

func (*MockfetcherGetMalfeasanceProofsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetMalfeasanceProofsCall) Return

Return rewrite *gomock.Call.Return

type MockfetcherGetMaliciousIDsCall

type MockfetcherGetMaliciousIDsCall struct {
	*gomock.Call
}

MockfetcherGetMaliciousIDsCall wrap *gomock.Call

func (*MockfetcherGetMaliciousIDsCall) Do

Do rewrite *gomock.Call.Do

func (*MockfetcherGetMaliciousIDsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherGetMaliciousIDsCall) Return

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

type MockfetcherSelectBestShuffledCall struct {
	*gomock.Call
}

MockfetcherSelectBestShuffledCall wrap *gomock.Call

func (*MockfetcherSelectBestShuffledCall) Do

Do rewrite *gomock.Call.Do

func (*MockfetcherSelectBestShuffledCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherSelectBestShuffledCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL