mocks

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 4 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 MockTime

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

MockTime is a mock of Time interface.

func NewMockTime

func NewMockTime(ctrl *gomock.Controller) *MockTime

NewMockTime creates a new mock instance.

func (*MockTime) EXPECT

func (m *MockTime) EXPECT() *MockTimeMockRecorder

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

func (*MockTime) Now

func (m *MockTime) Now() time.Time

Now mocks base method.

type MockTimeMockRecorder

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

MockTimeMockRecorder is the mock recorder for MockTime.

func (*MockTimeMockRecorder) Now

Now indicates an expected call of Now.

type MockTimeNowCall added in v1.4.0

type MockTimeNowCall struct {
	*gomock.Call
}

MockTimeNowCall wrap *gomock.Call

func (*MockTimeNowCall) Do added in v1.4.0

func (c *MockTimeNowCall) Do(f func() time.Time) *MockTimeNowCall

Do rewrite *gomock.Call.Do

func (*MockTimeNowCall) DoAndReturn added in v1.4.0

func (c *MockTimeNowCall) DoAndReturn(f func() time.Time) *MockTimeNowCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockTimeNowCall) Return added in v1.4.0

func (c *MockTimeNowCall) Return(arg0 time.Time) *MockTimeNowCall

Return rewrite *gomock.Call.Return

type MockgetPeers

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

MockgetPeers is a mock of getPeers interface.

func NewMockgetPeers

func NewMockgetPeers(ctrl *gomock.Controller) *MockgetPeers

NewMockgetPeers creates a new mock instance.

func (*MockgetPeers) EXPECT

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

func (*MockgetPeers) GetPeers

func (m *MockgetPeers) GetPeers() []p2p.Peer

GetPeers mocks base method.

type MockgetPeersGetPeersCall added in v1.4.0

type MockgetPeersGetPeersCall struct {
	*gomock.Call
}

MockgetPeersGetPeersCall wrap *gomock.Call

func (*MockgetPeersGetPeersCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockgetPeersGetPeersCall) DoAndReturn added in v1.4.0

func (c *MockgetPeersGetPeersCall) DoAndReturn(f func() []p2p.Peer) *MockgetPeersGetPeersCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockgetPeersGetPeersCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockgetPeersMockRecorder

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

MockgetPeersMockRecorder is the mock recorder for MockgetPeers.

func (*MockgetPeersMockRecorder) GetPeers

GetPeers indicates an expected call of GetPeers.

Jump to

Keyboard shortcuts

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