mock

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFetcher

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

MockFetcher is a mock of Fetcher interface

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockFetcher) FetchBlock

func (m *MockFetcher) FetchBlock(ctx context.Context, height uint64) (*ariadne.Block, error)

FetchBlock mocks base method

func (*MockFetcher) FetchBlocks

func (m *MockFetcher) FetchBlocks(ctx context.Context, from uint64, handleFunc func(ariadne.Block) error, opts ...ariadne.FetchBlocksOption) error

FetchBlocks mocks base method

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher

func (*MockFetcherMockRecorder) FetchBlock

func (mr *MockFetcherMockRecorder) FetchBlock(ctx, height interface{}) *gomock.Call

FetchBlock indicates an expected call of FetchBlock

func (*MockFetcherMockRecorder) FetchBlocks

func (mr *MockFetcherMockRecorder) FetchBlocks(ctx, from, handleFunc interface{}, opts ...interface{}) *gomock.Call

FetchBlocks indicates an expected call of FetchBlocks

Jump to

Keyboard shortcuts

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