Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type Mockfetcher
- func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
- func (m *Mockfetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID, arg2 ...system.GetAtxOpt) error
- func (m *Mockfetcher) PeerEpochInfo(arg0 context.Context, arg1 p2p.Peer, arg2 types.EpochID) (*fetch.EpochData, error)
- func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer
- type MockfetcherGetAtxsCall
- func (c *MockfetcherGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
- func (c *MockfetcherGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
- func (c *MockfetcherGetAtxsCall) Return(arg0 error) *MockfetcherGetAtxsCall
- type MockfetcherMockRecorder
- type MockfetcherPeerEpochInfoCall
- func (c *MockfetcherPeerEpochInfoCall) Do(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
- func (c *MockfetcherPeerEpochInfoCall) DoAndReturn(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
- func (c *MockfetcherPeerEpochInfoCall) Return(arg0 *fetch.EpochData, arg1 error) *MockfetcherPeerEpochInfoCall
- type MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
- func (c *MockfetcherSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetcherSelectBestShuffledCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockfetcher ¶ added in v1.4.0
type Mockfetcher struct {
// contains filtered or unexported fields
}
Mockfetcher is a mock of fetcher interface.
func NewMockfetcher ¶ added in v1.4.0
func NewMockfetcher(ctrl *gomock.Controller) *Mockfetcher
NewMockfetcher creates a new mock instance.
func (*Mockfetcher) EXPECT ¶ added in v1.4.0
func (m *Mockfetcher) EXPECT() *MockfetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockfetcher) GetAtxs ¶ added in v1.4.0
func (m *Mockfetcher) GetAtxs(arg0 context.Context, arg1 []types.ATXID, arg2 ...system.GetAtxOpt) error
GetAtxs mocks base method.
func (*Mockfetcher) PeerEpochInfo ¶ added in v1.4.0
func (m *Mockfetcher) PeerEpochInfo(arg0 context.Context, arg1 p2p.Peer, arg2 types.EpochID) (*fetch.EpochData, error)
PeerEpochInfo mocks base method.
func (*Mockfetcher) SelectBestShuffled ¶ added in v1.4.0
func (m *Mockfetcher) SelectBestShuffled(arg0 int) []p2p.Peer
SelectBestShuffled mocks base method.
type MockfetcherGetAtxsCall ¶ added in v1.4.0
MockfetcherGetAtxsCall wrap *gomock.Call
func (*MockfetcherGetAtxsCall) Do ¶ added in v1.4.0
func (c *MockfetcherGetAtxsCall) Do(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
Do rewrite *gomock.Call.Do
func (*MockfetcherGetAtxsCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherGetAtxsCall) DoAndReturn(f func(context.Context, []types.ATXID, ...system.GetAtxOpt) error) *MockfetcherGetAtxsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherGetAtxsCall) Return ¶ added in v1.4.0
func (c *MockfetcherGetAtxsCall) Return(arg0 error) *MockfetcherGetAtxsCall
Return rewrite *gomock.Call.Return
type MockfetcherMockRecorder ¶ added in v1.4.0
type MockfetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockfetcherMockRecorder is the mock recorder for Mockfetcher.
func (*MockfetcherMockRecorder) GetAtxs ¶ added in v1.4.0
func (mr *MockfetcherMockRecorder) GetAtxs(arg0, arg1 any, arg2 ...any) *MockfetcherGetAtxsCall
GetAtxs indicates an expected call of GetAtxs.
func (*MockfetcherMockRecorder) PeerEpochInfo ¶ added in v1.4.0
func (mr *MockfetcherMockRecorder) PeerEpochInfo(arg0, arg1, arg2 any) *MockfetcherPeerEpochInfoCall
PeerEpochInfo indicates an expected call of PeerEpochInfo.
func (*MockfetcherMockRecorder) SelectBestShuffled ¶ added in v1.4.0
func (mr *MockfetcherMockRecorder) SelectBestShuffled(arg0 any) *MockfetcherSelectBestShuffledCall
SelectBestShuffled indicates an expected call of SelectBestShuffled.
type MockfetcherPeerEpochInfoCall ¶ added in v1.4.0
MockfetcherPeerEpochInfoCall wrap *gomock.Call
func (*MockfetcherPeerEpochInfoCall) Do ¶ added in v1.4.0
func (c *MockfetcherPeerEpochInfoCall) Do(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
Do rewrite *gomock.Call.Do
func (*MockfetcherPeerEpochInfoCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherPeerEpochInfoCall) DoAndReturn(f func(context.Context, p2p.Peer, types.EpochID) (*fetch.EpochData, error)) *MockfetcherPeerEpochInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherPeerEpochInfoCall) Return ¶ added in v1.4.0
func (c *MockfetcherPeerEpochInfoCall) Return(arg0 *fetch.EpochData, arg1 error) *MockfetcherPeerEpochInfoCall
Return rewrite *gomock.Call.Return
type MockfetcherSelectBestShuffledCall ¶ added in v1.4.0
MockfetcherSelectBestShuffledCall wrap *gomock.Call
func (*MockfetcherSelectBestShuffledCall) Do ¶ added in v1.4.0
func (c *MockfetcherSelectBestShuffledCall) Do(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
Do rewrite *gomock.Call.Do
func (*MockfetcherSelectBestShuffledCall) DoAndReturn ¶ added in v1.4.0
func (c *MockfetcherSelectBestShuffledCall) DoAndReturn(f func(int) []p2p.Peer) *MockfetcherSelectBestShuffledCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockfetcherSelectBestShuffledCall) Return ¶ added in v1.4.0
func (c *MockfetcherSelectBestShuffledCall) Return(arg0 []p2p.Peer) *MockfetcherSelectBestShuffledCall
Return rewrite *gomock.Call.Return