mocks

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./sync.go

Generated by this command:

mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./sync.go

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

func (mr *MockTimeMockRecorder) Now() *TimeNowCall

Now indicates an expected call of Now.

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 MockgetPeersMockRecorder

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

MockgetPeersMockRecorder is the mock recorder for MockgetPeers.

func (*MockgetPeersMockRecorder) GetPeers

func (mr *MockgetPeersMockRecorder) GetPeers() *getPeersGetPeersCall

GetPeers indicates an expected call of GetPeers.

type TimeNowCall added in v1.1.5

type TimeNowCall struct {
	*gomock.Call
}

TimeNowCall wrap *gomock.Call

func (*TimeNowCall) Do added in v1.1.5

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

Do rewrite *gomock.Call.Do

func (*TimeNowCall) DoAndReturn added in v1.1.5

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*TimeNowCall) Return added in v1.1.5

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

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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