Documentation ¶
Overview ¶
Package blockssync is a generated GoMock package.
Index ¶
- func Sync(ctx context.Context, logger *zap.Logger, requests <-chan []types.BlockID, ...) error
- type MockblockFetcher
- type MockblockFetcherGetBlocksCall
- func (c *MockblockFetcherGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockblockFetcherGetBlocksCall
- func (c *MockblockFetcherGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockblockFetcherGetBlocksCall
- func (c *MockblockFetcherGetBlocksCall) Return(arg0 error) *MockblockFetcherGetBlocksCall
- type MockblockFetcherMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockblockFetcher ¶
type MockblockFetcher struct {
// contains filtered or unexported fields
}
MockblockFetcher is a mock of blockFetcher interface.
func NewMockblockFetcher ¶
func NewMockblockFetcher(ctrl *gomock.Controller) *MockblockFetcher
NewMockblockFetcher creates a new mock instance.
func (*MockblockFetcher) EXPECT ¶
func (m *MockblockFetcher) EXPECT() *MockblockFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockblockFetcherGetBlocksCall ¶ added in v1.4.0
MockblockFetcherGetBlocksCall wrap *gomock.Call
func (*MockblockFetcherGetBlocksCall) Do ¶ added in v1.4.0
func (c *MockblockFetcherGetBlocksCall) Do(f func(context.Context, []types.BlockID) error) *MockblockFetcherGetBlocksCall
Do rewrite *gomock.Call.Do
func (*MockblockFetcherGetBlocksCall) DoAndReturn ¶ added in v1.4.0
func (c *MockblockFetcherGetBlocksCall) DoAndReturn(f func(context.Context, []types.BlockID) error) *MockblockFetcherGetBlocksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockblockFetcherGetBlocksCall) Return ¶ added in v1.4.0
func (c *MockblockFetcherGetBlocksCall) Return(arg0 error) *MockblockFetcherGetBlocksCall
Return rewrite *gomock.Call.Return
type MockblockFetcherMockRecorder ¶
type MockblockFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockblockFetcherMockRecorder is the mock recorder for MockblockFetcher.
func (*MockblockFetcherMockRecorder) GetBlocks ¶
func (mr *MockblockFetcherMockRecorder) GetBlocks(arg0, arg1 any) *MockblockFetcherGetBlocksCall
GetBlocks indicates an expected call of GetBlocks.
Click to show internal directories.
Click to hide internal directories.