Documentation ¶
Overview ¶
Package peerinfo is a generated GoMock package.
Index ¶
- type MockPeerInfo
- func (m *MockPeerInfo) EXPECT() *MockPeerInfoMockRecorder
- func (m *MockPeerInfo) EnsurePeerInfo(p peer.ID) *peerinfo.Info
- func (m *MockPeerInfo) EnsureProtoStats(proto protocol.ID) *peerinfo.DataStats
- func (m *MockPeerInfo) Protocols() []protocol.ID
- func (m *MockPeerInfo) RecordReceived(n int64, proto protocol.ID, p peer.ID)
- func (m *MockPeerInfo) RecordSent(n int64, proto protocol.ID, p peer.ID)
- type MockPeerInfoEnsurePeerInfoCall
- func (c *MockPeerInfoEnsurePeerInfoCall) Do(f func(peer.ID) *peerinfo.Info) *MockPeerInfoEnsurePeerInfoCall
- func (c *MockPeerInfoEnsurePeerInfoCall) DoAndReturn(f func(peer.ID) *peerinfo.Info) *MockPeerInfoEnsurePeerInfoCall
- func (c *MockPeerInfoEnsurePeerInfoCall) Return(arg0 *peerinfo.Info) *MockPeerInfoEnsurePeerInfoCall
- type MockPeerInfoEnsureProtoStatsCall
- func (c *MockPeerInfoEnsureProtoStatsCall) Do(f func(protocol.ID) *peerinfo.DataStats) *MockPeerInfoEnsureProtoStatsCall
- func (c *MockPeerInfoEnsureProtoStatsCall) DoAndReturn(f func(protocol.ID) *peerinfo.DataStats) *MockPeerInfoEnsureProtoStatsCall
- func (c *MockPeerInfoEnsureProtoStatsCall) Return(arg0 *peerinfo.DataStats) *MockPeerInfoEnsureProtoStatsCall
- type MockPeerInfoMockRecorder
- func (mr *MockPeerInfoMockRecorder) EnsurePeerInfo(p any) *MockPeerInfoEnsurePeerInfoCall
- func (mr *MockPeerInfoMockRecorder) EnsureProtoStats(proto any) *MockPeerInfoEnsureProtoStatsCall
- func (mr *MockPeerInfoMockRecorder) Protocols() *MockPeerInfoProtocolsCall
- func (mr *MockPeerInfoMockRecorder) RecordReceived(n, proto, p any) *MockPeerInfoRecordReceivedCall
- func (mr *MockPeerInfoMockRecorder) RecordSent(n, proto, p any) *MockPeerInfoRecordSentCall
- type MockPeerInfoProtocolsCall
- type MockPeerInfoRecordReceivedCall
- func (c *MockPeerInfoRecordReceivedCall) Do(f func(int64, protocol.ID, peer.ID)) *MockPeerInfoRecordReceivedCall
- func (c *MockPeerInfoRecordReceivedCall) DoAndReturn(f func(int64, protocol.ID, peer.ID)) *MockPeerInfoRecordReceivedCall
- func (c *MockPeerInfoRecordReceivedCall) Return() *MockPeerInfoRecordReceivedCall
- type MockPeerInfoRecordSentCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPeerInfo ¶
type MockPeerInfo struct {
// contains filtered or unexported fields
}
MockPeerInfo is a mock of PeerInfo interface.
func NewMockPeerInfo ¶
func NewMockPeerInfo(ctrl *gomock.Controller) *MockPeerInfo
NewMockPeerInfo creates a new mock instance.
func (*MockPeerInfo) EXPECT ¶
func (m *MockPeerInfo) EXPECT() *MockPeerInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeerInfo) EnsurePeerInfo ¶
func (m *MockPeerInfo) EnsurePeerInfo(p peer.ID) *peerinfo.Info
EnsurePeerInfo mocks base method.
func (*MockPeerInfo) EnsureProtoStats ¶
func (m *MockPeerInfo) EnsureProtoStats(proto protocol.ID) *peerinfo.DataStats
EnsureProtoStats mocks base method.
func (*MockPeerInfo) Protocols ¶
func (m *MockPeerInfo) Protocols() []protocol.ID
Protocols mocks base method.
func (*MockPeerInfo) RecordReceived ¶
RecordReceived mocks base method.
func (*MockPeerInfo) RecordSent ¶
RecordSent mocks base method.
type MockPeerInfoEnsurePeerInfoCall ¶
MockPeerInfoEnsurePeerInfoCall wrap *gomock.Call
func (*MockPeerInfoEnsurePeerInfoCall) Do ¶
func (c *MockPeerInfoEnsurePeerInfoCall) Do(f func(peer.ID) *peerinfo.Info) *MockPeerInfoEnsurePeerInfoCall
Do rewrite *gomock.Call.Do
func (*MockPeerInfoEnsurePeerInfoCall) DoAndReturn ¶
func (c *MockPeerInfoEnsurePeerInfoCall) DoAndReturn(f func(peer.ID) *peerinfo.Info) *MockPeerInfoEnsurePeerInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPeerInfoEnsurePeerInfoCall) Return ¶
func (c *MockPeerInfoEnsurePeerInfoCall) Return(arg0 *peerinfo.Info) *MockPeerInfoEnsurePeerInfoCall
Return rewrite *gomock.Call.Return
type MockPeerInfoEnsureProtoStatsCall ¶
MockPeerInfoEnsureProtoStatsCall wrap *gomock.Call
func (*MockPeerInfoEnsureProtoStatsCall) Do ¶
func (c *MockPeerInfoEnsureProtoStatsCall) Do(f func(protocol.ID) *peerinfo.DataStats) *MockPeerInfoEnsureProtoStatsCall
Do rewrite *gomock.Call.Do
func (*MockPeerInfoEnsureProtoStatsCall) DoAndReturn ¶
func (c *MockPeerInfoEnsureProtoStatsCall) DoAndReturn(f func(protocol.ID) *peerinfo.DataStats) *MockPeerInfoEnsureProtoStatsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPeerInfoEnsureProtoStatsCall) Return ¶
func (c *MockPeerInfoEnsureProtoStatsCall) Return(arg0 *peerinfo.DataStats) *MockPeerInfoEnsureProtoStatsCall
Return rewrite *gomock.Call.Return
type MockPeerInfoMockRecorder ¶
type MockPeerInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockPeerInfoMockRecorder is the mock recorder for MockPeerInfo.
func (*MockPeerInfoMockRecorder) EnsurePeerInfo ¶
func (mr *MockPeerInfoMockRecorder) EnsurePeerInfo(p any) *MockPeerInfoEnsurePeerInfoCall
EnsurePeerInfo indicates an expected call of EnsurePeerInfo.
func (*MockPeerInfoMockRecorder) EnsureProtoStats ¶
func (mr *MockPeerInfoMockRecorder) EnsureProtoStats(proto any) *MockPeerInfoEnsureProtoStatsCall
EnsureProtoStats indicates an expected call of EnsureProtoStats.
func (*MockPeerInfoMockRecorder) Protocols ¶
func (mr *MockPeerInfoMockRecorder) Protocols() *MockPeerInfoProtocolsCall
Protocols indicates an expected call of Protocols.
func (*MockPeerInfoMockRecorder) RecordReceived ¶
func (mr *MockPeerInfoMockRecorder) RecordReceived(n, proto, p any) *MockPeerInfoRecordReceivedCall
RecordReceived indicates an expected call of RecordReceived.
func (*MockPeerInfoMockRecorder) RecordSent ¶
func (mr *MockPeerInfoMockRecorder) RecordSent(n, proto, p any) *MockPeerInfoRecordSentCall
RecordSent indicates an expected call of RecordSent.
type MockPeerInfoProtocolsCall ¶
MockPeerInfoProtocolsCall wrap *gomock.Call
func (*MockPeerInfoProtocolsCall) Do ¶
func (c *MockPeerInfoProtocolsCall) Do(f func() []protocol.ID) *MockPeerInfoProtocolsCall
Do rewrite *gomock.Call.Do
func (*MockPeerInfoProtocolsCall) DoAndReturn ¶
func (c *MockPeerInfoProtocolsCall) DoAndReturn(f func() []protocol.ID) *MockPeerInfoProtocolsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPeerInfoProtocolsCall) Return ¶
func (c *MockPeerInfoProtocolsCall) Return(arg0 []protocol.ID) *MockPeerInfoProtocolsCall
Return rewrite *gomock.Call.Return
type MockPeerInfoRecordReceivedCall ¶
MockPeerInfoRecordReceivedCall wrap *gomock.Call
func (*MockPeerInfoRecordReceivedCall) Do ¶
func (c *MockPeerInfoRecordReceivedCall) Do(f func(int64, protocol.ID, peer.ID)) *MockPeerInfoRecordReceivedCall
Do rewrite *gomock.Call.Do
func (*MockPeerInfoRecordReceivedCall) DoAndReturn ¶
func (c *MockPeerInfoRecordReceivedCall) DoAndReturn(f func(int64, protocol.ID, peer.ID)) *MockPeerInfoRecordReceivedCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPeerInfoRecordReceivedCall) Return ¶
func (c *MockPeerInfoRecordReceivedCall) Return() *MockPeerInfoRecordReceivedCall
Return rewrite *gomock.Call.Return
type MockPeerInfoRecordSentCall ¶
MockPeerInfoRecordSentCall wrap *gomock.Call
func (*MockPeerInfoRecordSentCall) Do ¶
func (c *MockPeerInfoRecordSentCall) Do(f func(int64, protocol.ID, peer.ID)) *MockPeerInfoRecordSentCall
Do rewrite *gomock.Call.Do
func (*MockPeerInfoRecordSentCall) DoAndReturn ¶
func (c *MockPeerInfoRecordSentCall) DoAndReturn(f func(int64, protocol.ID, peer.ID)) *MockPeerInfoRecordSentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockPeerInfoRecordSentCall) Return ¶
func (c *MockPeerInfoRecordSentCall) Return() *MockPeerInfoRecordSentCall
Return rewrite *gomock.Call.Return