mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 6 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 MockDagPool

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

MockDagPool is a mock of DagPool interface.

func NewMockDagPool

func NewMockDagPool(ctrl *gomock.Controller) *MockDagPool

NewMockDagPool creates a new mock instance.

func (*MockDagPool) Add

func (m *MockDagPool) Add(arg0 context.Context, arg1 blocks.Block, arg2, arg3 string, arg4 bool) error

Add mocks base method.

func (*MockDagPool) AddUser

func (m *MockDagPool) AddUser(arg0 dpuser.DagPoolUser, arg1, arg2 string) error

AddUser mocks base method.

func (*MockDagPool) Close

func (m *MockDagPool) Close() error

Close mocks base method.

func (*MockDagPool) EXPECT

func (m *MockDagPool) EXPECT() *MockDagPoolMockRecorder

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

func (*MockDagPool) Get

func (m *MockDagPool) Get(arg0 context.Context, arg1 cid.Cid, arg2, arg3 string) (blocks.Block, error)

Get mocks base method.

func (*MockDagPool) GetSize

func (m *MockDagPool) GetSize(arg0 context.Context, arg1 cid.Cid, arg2, arg3 string) (int, error)

GetSize mocks base method.

func (*MockDagPool) Pin

func (m *MockDagPool) Pin(arg0 context.Context, arg1 cid.Cid, arg2, arg3 string) error

Pin mocks base method.

func (*MockDagPool) QueryUser

func (m *MockDagPool) QueryUser(arg0, arg1, arg2 string) (*dpuser.DagPoolUser, error)

QueryUser mocks base method.

func (*MockDagPool) Remove

func (m *MockDagPool) Remove(arg0 context.Context, arg1 cid.Cid, arg2, arg3 string, arg4 bool) error

Remove mocks base method.

func (*MockDagPool) RemoveUser

func (m *MockDagPool) RemoveUser(arg0, arg1, arg2 string) error

RemoveUser mocks base method.

func (*MockDagPool) UnPin

func (m *MockDagPool) UnPin(arg0 context.Context, arg1 cid.Cid, arg2, arg3 string) error

UnPin mocks base method.

func (*MockDagPool) UpdateUser

func (m *MockDagPool) UpdateUser(arg0 dpuser.DagPoolUser, arg1, arg2 string) error

UpdateUser mocks base method.

type MockDagPoolMockRecorder

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

MockDagPoolMockRecorder is the mock recorder for MockDagPool.

func (*MockDagPoolMockRecorder) Add

func (mr *MockDagPoolMockRecorder) Add(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockDagPoolMockRecorder) AddUser

func (mr *MockDagPoolMockRecorder) AddUser(arg0, arg1, arg2 interface{}) *gomock.Call

AddUser indicates an expected call of AddUser.

func (*MockDagPoolMockRecorder) Close

func (mr *MockDagPoolMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDagPoolMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockDagPoolMockRecorder) GetSize

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

GetSize indicates an expected call of GetSize.

func (*MockDagPoolMockRecorder) Pin

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

Pin indicates an expected call of Pin.

func (*MockDagPoolMockRecorder) QueryUser

func (mr *MockDagPoolMockRecorder) QueryUser(arg0, arg1, arg2 interface{}) *gomock.Call

QueryUser indicates an expected call of QueryUser.

func (*MockDagPoolMockRecorder) Remove

func (mr *MockDagPoolMockRecorder) Remove(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockDagPoolMockRecorder) RemoveUser

func (mr *MockDagPoolMockRecorder) RemoveUser(arg0, arg1, arg2 interface{}) *gomock.Call

RemoveUser indicates an expected call of RemoveUser.

func (*MockDagPoolMockRecorder) UnPin

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

UnPin indicates an expected call of UnPin.

func (*MockDagPoolMockRecorder) UpdateUser

func (mr *MockDagPoolMockRecorder) UpdateUser(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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