mock_index

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_index is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIndex

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

MockIndex is a mock of Index interface.

func NewMockIndex

func NewMockIndex(ctrl *gomock.Controller) *MockIndex

NewMockIndex creates a new mock instance.

func (*MockIndex) AddBlocks

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

AddBlocks mocks base method.

func (*MockIndex) Bind

func (m *MockIndex) Bind(arg0 context.Context, arg1, arg2 string, arg3 []blocks.Block) error

Bind mocks base method.

func (*MockIndex) BindCids

func (m *MockIndex) BindCids(arg0 context.Context, arg1, arg2 string, arg3 []cid.Cid) error

BindCids mocks base method.

func (*MockIndex) EXPECT

func (m *MockIndex) EXPECT() *MockIndexMockRecorder

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

func (*MockIndex) Exists

func (m *MockIndex) Exists(arg0 context.Context, arg1 cid.Cid) (bool, error)

Exists mocks base method.

func (*MockIndex) ExistsInSpace

func (m *MockIndex) ExistsInSpace(arg0 context.Context, arg1 string, arg2 []cid.Cid) ([]cid.Cid, error)

ExistsInSpace mocks base method.

func (*MockIndex) FileInfo

func (m *MockIndex) FileInfo(arg0 context.Context, arg1, arg2 string) (index.FileInfo, error)

FileInfo mocks base method.

func (*MockIndex) GetNonExistentBlocks

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

GetNonExistentBlocks mocks base method.

func (*MockIndex) Init

func (m *MockIndex) Init(arg0 *app.App) error

Init mocks base method.

func (*MockIndex) IsAllExists

func (m *MockIndex) IsAllExists(arg0 context.Context, arg1 []cid.Cid) (bool, error)

IsAllExists mocks base method.

func (*MockIndex) Lock

func (m *MockIndex) Lock(arg0 context.Context, arg1 []cid.Cid) (func(), error)

Lock mocks base method.

func (*MockIndex) Name

func (m *MockIndex) Name() string

Name mocks base method.

func (*MockIndex) SpaceInfo

func (m *MockIndex) SpaceInfo(arg0 context.Context, arg1 string) (index.SpaceInfo, error)

SpaceInfo mocks base method.

func (*MockIndex) SpaceSize

func (m *MockIndex) SpaceSize(arg0 context.Context, arg1 string) (uint64, error)

SpaceSize mocks base method.

func (*MockIndex) UnBind

func (m *MockIndex) UnBind(arg0 context.Context, arg1, arg2 string) error

UnBind mocks base method.

type MockIndexMockRecorder

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

MockIndexMockRecorder is the mock recorder for MockIndex.

func (*MockIndexMockRecorder) AddBlocks

func (mr *MockIndexMockRecorder) AddBlocks(arg0, arg1 interface{}) *gomock.Call

AddBlocks indicates an expected call of AddBlocks.

func (*MockIndexMockRecorder) Bind

func (mr *MockIndexMockRecorder) Bind(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Bind indicates an expected call of Bind.

func (*MockIndexMockRecorder) BindCids

func (mr *MockIndexMockRecorder) BindCids(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

BindCids indicates an expected call of BindCids.

func (*MockIndexMockRecorder) Exists

func (mr *MockIndexMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockIndexMockRecorder) ExistsInSpace

func (mr *MockIndexMockRecorder) ExistsInSpace(arg0, arg1, arg2 interface{}) *gomock.Call

ExistsInSpace indicates an expected call of ExistsInSpace.

func (*MockIndexMockRecorder) FileInfo

func (mr *MockIndexMockRecorder) FileInfo(arg0, arg1, arg2 interface{}) *gomock.Call

FileInfo indicates an expected call of FileInfo.

func (*MockIndexMockRecorder) GetNonExistentBlocks

func (mr *MockIndexMockRecorder) GetNonExistentBlocks(arg0, arg1 interface{}) *gomock.Call

GetNonExistentBlocks indicates an expected call of GetNonExistentBlocks.

func (*MockIndexMockRecorder) Init

func (mr *MockIndexMockRecorder) Init(arg0 interface{}) *gomock.Call

Init indicates an expected call of Init.

func (*MockIndexMockRecorder) IsAllExists

func (mr *MockIndexMockRecorder) IsAllExists(arg0, arg1 interface{}) *gomock.Call

IsAllExists indicates an expected call of IsAllExists.

func (*MockIndexMockRecorder) Lock

func (mr *MockIndexMockRecorder) Lock(arg0, arg1 interface{}) *gomock.Call

Lock indicates an expected call of Lock.

func (*MockIndexMockRecorder) Name

func (mr *MockIndexMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockIndexMockRecorder) SpaceInfo

func (mr *MockIndexMockRecorder) SpaceInfo(arg0, arg1 interface{}) *gomock.Call

SpaceInfo indicates an expected call of SpaceInfo.

func (*MockIndexMockRecorder) SpaceSize

func (mr *MockIndexMockRecorder) SpaceSize(arg0, arg1 interface{}) *gomock.Call

SpaceSize indicates an expected call of SpaceSize.

func (*MockIndexMockRecorder) UnBind

func (mr *MockIndexMockRecorder) UnBind(arg0, arg1, arg2 interface{}) *gomock.Call

UnBind indicates an expected call of UnBind.

Jump to

Keyboard shortcuts

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