mock

package
v0.2.3-test.24 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: GPL-3.0 Imports: 3 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 MockPieceStoreAPI

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

MockPieceStoreAPI is a mock of PieceStoreAPI interface.

func NewMockPieceStoreAPI

func NewMockPieceStoreAPI(ctrl *gomock.Controller) *MockPieceStoreAPI

NewMockPieceStoreAPI creates a new mock instance.

func (*MockPieceStoreAPI) EXPECT

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

func (*MockPieceStoreAPI) GetPiece

func (m *MockPieceStoreAPI) GetPiece(ctx context.Context, key string, offset, limit int64) ([]byte, error)

GetPiece mocks base method.

func (*MockPieceStoreAPI) PutPiece

func (m *MockPieceStoreAPI) PutPiece(key string, value []byte) error

PutPiece mocks base method.

type MockPieceStoreAPIMockRecorder

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

MockPieceStoreAPIMockRecorder is the mock recorder for MockPieceStoreAPI.

func (*MockPieceStoreAPIMockRecorder) GetPiece

func (mr *MockPieceStoreAPIMockRecorder) GetPiece(ctx, key, offset, limit interface{}) *gomock.Call

GetPiece indicates an expected call of GetPiece.

func (*MockPieceStoreAPIMockRecorder) PutPiece

func (mr *MockPieceStoreAPIMockRecorder) PutPiece(key, value interface{}) *gomock.Call

PutPiece indicates an expected call of PutPiece.

Jump to

Keyboard shortcuts

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