mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPoolClient

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

MockPoolClient is a mock of PoolClient interface.

func NewMockPoolClient

func NewMockPoolClient(ctrl *gomock.Controller) *MockPoolClient

NewMockPoolClient creates a new mock instance.

func (*MockPoolClient) AllKeysChan

func (m *MockPoolClient) AllKeysChan(arg0 context.Context) (<-chan cid.Cid, error)

AllKeysChan mocks base method.

func (*MockPoolClient) Close

func (m *MockPoolClient) Close(arg0 context.Context)

Close mocks base method.

func (*MockPoolClient) DeleteBlock

func (m *MockPoolClient) DeleteBlock(arg0 context.Context, arg1 cid.Cid) error

DeleteBlock mocks base method.

func (*MockPoolClient) EXPECT

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

func (*MockPoolClient) Get

func (m *MockPoolClient) Get(arg0 context.Context, arg1 cid.Cid) (blocks.Block, error)

Get mocks base method.

func (*MockPoolClient) GetSize

func (m *MockPoolClient) GetSize(arg0 context.Context, arg1 cid.Cid) (int, error)

GetSize mocks base method.

func (*MockPoolClient) Has

func (m *MockPoolClient) Has(arg0 context.Context, arg1 cid.Cid) (bool, error)

Has mocks base method.

func (*MockPoolClient) HashOnRead

func (m *MockPoolClient) HashOnRead(arg0 bool)

HashOnRead mocks base method.

func (*MockPoolClient) Put

func (m *MockPoolClient) Put(arg0 context.Context, arg1 blocks.Block) error

Put mocks base method.

func (*MockPoolClient) PutMany

func (m *MockPoolClient) PutMany(arg0 context.Context, arg1 []blocks.Block) error

PutMany mocks base method.

type MockPoolClientMockRecorder

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

MockPoolClientMockRecorder is the mock recorder for MockPoolClient.

func (*MockPoolClientMockRecorder) AllKeysChan

func (mr *MockPoolClientMockRecorder) AllKeysChan(arg0 interface{}) *gomock.Call

AllKeysChan indicates an expected call of AllKeysChan.

func (*MockPoolClientMockRecorder) Close

func (mr *MockPoolClientMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockPoolClientMockRecorder) DeleteBlock

func (mr *MockPoolClientMockRecorder) DeleteBlock(arg0, arg1 interface{}) *gomock.Call

DeleteBlock indicates an expected call of DeleteBlock.

func (*MockPoolClientMockRecorder) Get

func (mr *MockPoolClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockPoolClientMockRecorder) GetSize

func (mr *MockPoolClientMockRecorder) GetSize(arg0, arg1 interface{}) *gomock.Call

GetSize indicates an expected call of GetSize.

func (*MockPoolClientMockRecorder) Has

func (mr *MockPoolClientMockRecorder) Has(arg0, arg1 interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockPoolClientMockRecorder) HashOnRead

func (mr *MockPoolClientMockRecorder) HashOnRead(arg0 interface{}) *gomock.Call

HashOnRead indicates an expected call of HashOnRead.

func (*MockPoolClientMockRecorder) Put

func (mr *MockPoolClientMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockPoolClientMockRecorder) PutMany

func (mr *MockPoolClientMockRecorder) PutMany(arg0, arg1 interface{}) *gomock.Call

PutMany indicates an expected call of PutMany.

Jump to

Keyboard shortcuts

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