mocks

package
v1.7.16 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 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 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) LegacyMalfeasanceProofs added in v1.7.13

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

LegacyMalfeasanceProofs mocks base method.

func (*Mockfetcher) LegacyMaliciousIDs added in v1.7.13

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

LegacyMaliciousIDs mocks base method.

func (*Mockfetcher) MalfeasanceProofs added in v1.7.13

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

MalfeasanceProofs mocks base method.

func (*Mockfetcher) MaliciousIDs added in v1.7.13

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

MaliciousIDs mocks base method.

func (*Mockfetcher) SelectBestShuffled

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

SelectBestShuffled mocks base method.

type MockfetcherLegacyMalfeasanceProofsCall added in v1.7.13

type MockfetcherLegacyMalfeasanceProofsCall struct {
	*gomock.Call
}

MockfetcherLegacyMalfeasanceProofsCall wrap *gomock.Call

func (*MockfetcherLegacyMalfeasanceProofsCall) Do added in v1.7.13

Do rewrite *gomock.Call.Do

func (*MockfetcherLegacyMalfeasanceProofsCall) DoAndReturn added in v1.7.13

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherLegacyMalfeasanceProofsCall) Return added in v1.7.13

Return rewrite *gomock.Call.Return

type MockfetcherLegacyMaliciousIDsCall added in v1.7.13

type MockfetcherLegacyMaliciousIDsCall struct {
	*gomock.Call
}

MockfetcherLegacyMaliciousIDsCall wrap *gomock.Call

func (*MockfetcherLegacyMaliciousIDsCall) Do added in v1.7.13

Do rewrite *gomock.Call.Do

func (*MockfetcherLegacyMaliciousIDsCall) DoAndReturn added in v1.7.13

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherLegacyMaliciousIDsCall) Return added in v1.7.13

Return rewrite *gomock.Call.Return

type MockfetcherMalfeasanceProofsCall added in v1.7.13

type MockfetcherMalfeasanceProofsCall struct {
	*gomock.Call
}

MockfetcherMalfeasanceProofsCall wrap *gomock.Call

func (*MockfetcherMalfeasanceProofsCall) Do added in v1.7.13

Do rewrite *gomock.Call.Do

func (*MockfetcherMalfeasanceProofsCall) DoAndReturn added in v1.7.13

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherMalfeasanceProofsCall) Return added in v1.7.13

Return rewrite *gomock.Call.Return

type MockfetcherMaliciousIDsCall added in v1.7.13

type MockfetcherMaliciousIDsCall struct {
	*gomock.Call
}

MockfetcherMaliciousIDsCall wrap *gomock.Call

func (*MockfetcherMaliciousIDsCall) Do added in v1.7.13

Do rewrite *gomock.Call.Do

func (*MockfetcherMaliciousIDsCall) DoAndReturn added in v1.7.13

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockfetcherMaliciousIDsCall) Return added in v1.7.13

Return rewrite *gomock.Call.Return

type MockfetcherMockRecorder

type MockfetcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockfetcherMockRecorder is the mock recorder for Mockfetcher.

func (*MockfetcherMockRecorder) LegacyMalfeasanceProofs added in v1.7.13

func (mr *MockfetcherMockRecorder) LegacyMalfeasanceProofs(arg0, arg1 any) *MockfetcherLegacyMalfeasanceProofsCall

LegacyMalfeasanceProofs indicates an expected call of LegacyMalfeasanceProofs.

func (*MockfetcherMockRecorder) LegacyMaliciousIDs added in v1.7.13

func (mr *MockfetcherMockRecorder) LegacyMaliciousIDs(arg0, arg1 any) *MockfetcherLegacyMaliciousIDsCall

LegacyMaliciousIDs indicates an expected call of LegacyMaliciousIDs.

func (*MockfetcherMockRecorder) MalfeasanceProofs added in v1.7.13

func (mr *MockfetcherMockRecorder) MalfeasanceProofs(arg0, arg1 any) *MockfetcherMalfeasanceProofsCall

MalfeasanceProofs indicates an expected call of MalfeasanceProofs.

func (*MockfetcherMockRecorder) MaliciousIDs added in v1.7.13

func (mr *MockfetcherMockRecorder) MaliciousIDs(arg0, arg1 any) *MockfetcherMaliciousIDsCall

MaliciousIDs indicates an expected call of MaliciousIDs.

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

type MocklayerClock added in v1.7.16

type MocklayerClock struct {
	// contains filtered or unexported fields
}

MocklayerClock is a mock of layerClock interface.

func NewMocklayerClock added in v1.7.16

func NewMocklayerClock(ctrl *gomock.Controller) *MocklayerClock

NewMocklayerClock creates a new mock instance.

func (*MocklayerClock) AwaitLayer added in v1.7.16

func (m *MocklayerClock) AwaitLayer(layerID types.LayerID) <-chan struct{}

AwaitLayer mocks base method.

func (*MocklayerClock) EXPECT added in v1.7.16

EXPECT returns an object that allows the caller to indicate expected use.

type MocklayerClockAwaitLayerCall added in v1.7.16

type MocklayerClockAwaitLayerCall struct {
	*gomock.Call
}

MocklayerClockAwaitLayerCall wrap *gomock.Call

func (*MocklayerClockAwaitLayerCall) Do added in v1.7.16

Do rewrite *gomock.Call.Do

func (*MocklayerClockAwaitLayerCall) DoAndReturn added in v1.7.16

func (c *MocklayerClockAwaitLayerCall) DoAndReturn(f func(types.LayerID) <-chan struct{}) *MocklayerClockAwaitLayerCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerClockAwaitLayerCall) Return added in v1.7.16

func (c *MocklayerClockAwaitLayerCall) Return(arg0 <-chan struct{}) *MocklayerClockAwaitLayerCall

Return rewrite *gomock.Call.Return

type MocklayerClockMockRecorder added in v1.7.16

type MocklayerClockMockRecorder struct {
	// contains filtered or unexported fields
}

MocklayerClockMockRecorder is the mock recorder for MocklayerClock.

func (*MocklayerClockMockRecorder) AwaitLayer added in v1.7.16

AwaitLayer indicates an expected call of AwaitLayer.

Jump to

Keyboard shortcuts

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