mocks

package
v1.0.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GossipMetricer

type GossipMetricer struct {
	mock.Mock
}

GossipMetricer is an autogenerated mock type for the GossipMetricer type

func NewGossipMetricer

func NewGossipMetricer(t mockConstructorTestingTNewGossipMetricer) *GossipMetricer

NewGossipMetricer creates a new instance of GossipMetricer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GossipMetricer) RecordGossipEvent

func (_m *GossipMetricer) RecordGossipEvent(evType int32)

RecordGossipEvent provides a mock function with given fields: evType

type PeerGater

type PeerGater struct {
	mock.Mock
}

PeerGater is an autogenerated mock type for the PeerGater type

func NewPeerGater

func NewPeerGater(t mockConstructorTestingTNewPeerGater) *PeerGater

NewPeerGater creates a new instance of PeerGater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PeerGater) IsBlocked

func (_m *PeerGater) IsBlocked(_a0 peer.ID) bool

IsBlocked provides a mock function with given fields: _a0

func (*PeerGater) Update

func (_m *PeerGater) Update(_a0 peer.ID, _a1 float64)

Update provides a mock function with given fields: _a0, _a1

type Peerstore

type Peerstore struct {
	mock.Mock
}

Peerstore is an autogenerated mock type for the Peerstore type

func NewPeerstore

func NewPeerstore(t mockConstructorTestingTNewPeerstore) *Peerstore

NewPeerstore creates a new instance of Peerstore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Peerstore) PeerInfo

func (_m *Peerstore) PeerInfo(_a0 peer.ID) peer.AddrInfo

PeerInfo provides a mock function with given fields: _a0

func (*Peerstore) Peers

func (_m *Peerstore) Peers() peer.IDSlice

Peers provides a mock function with given fields:

func (*Peerstore) SetScore added in v0.3.0

func (_m *Peerstore) SetScore(id peer.ID, diff store.ScoreDiff) (store.PeerScores, error)

SetScore provides a mock function with given fields: id, diff

type ScoreMetrics added in v0.3.0

type ScoreMetrics struct {
	mock.Mock
}

ScoreMetrics is an autogenerated mock type for the ScoreMetrics type

func NewScoreMetrics added in v0.3.0

func NewScoreMetrics(t mockConstructorTestingTNewScoreMetrics) *ScoreMetrics

NewScoreMetrics creates a new instance of ScoreMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ScoreMetrics) SetPeerScores added in v0.3.0

func (_m *ScoreMetrics) SetPeerScores(_a0 []store.PeerScores)

SetPeerScores provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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