mock

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 5 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 MockFS

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

MockFS is a mock of FS interface.

func NewMockFS

func NewMockFS(ctrl *gomock.Controller) *MockFS

NewMockFS creates a new mock instance.

func (*MockFS) Create

func (m *MockFS) Create(ctx context.Context, namespace string) (pyramid.StoredFile, error)

Create mocks base method.

func (*MockFS) EXPECT

func (m *MockFS) EXPECT() *MockFSMockRecorder

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

func (*MockFS) Exists

func (m *MockFS) Exists(ctx context.Context, namespace, filename string) (bool, error)

Exists mocks base method.

func (*MockFS) GetRemoteURI

func (m *MockFS) GetRemoteURI(ctx context.Context, namespace, filename string) (string, error)

GetRemoteURI mocks base method.

func (*MockFS) Open

func (m *MockFS) Open(ctx context.Context, namespace, filename string) (pyramid.File, error)

Open mocks base method.

type MockFSMockRecorder

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

MockFSMockRecorder is the mock recorder for MockFS.

func (*MockFSMockRecorder) Create

func (mr *MockFSMockRecorder) Create(ctx, namespace interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockFSMockRecorder) Exists

func (mr *MockFSMockRecorder) Exists(ctx, namespace, filename interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockFSMockRecorder) GetRemoteURI

func (mr *MockFSMockRecorder) GetRemoteURI(ctx, namespace, filename interface{}) *gomock.Call

GetRemoteURI indicates an expected call of GetRemoteURI.

func (*MockFSMockRecorder) Open

func (mr *MockFSMockRecorder) Open(ctx, namespace, filename interface{}) *gomock.Call

Open indicates an expected call of Open.

type MockFile

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

MockFile is a mock of File interface.

func NewMockFile

func NewMockFile(ctrl *gomock.Controller) *MockFile

NewMockFile creates a new mock instance.

func (*MockFile) Close

func (m *MockFile) Close() error

Close mocks base method.

func (*MockFile) EXPECT

func (m *MockFile) EXPECT() *MockFileMockRecorder

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

func (*MockFile) Read

func (m *MockFile) Read(p []byte) (int, error)

Read mocks base method.

func (*MockFile) ReadAt

func (m *MockFile) ReadAt(p []byte, off int64) (int, error)

ReadAt mocks base method.

func (*MockFile) Stat

func (m *MockFile) Stat() (os.FileInfo, error)

Stat mocks base method.

func (*MockFile) Sync

func (m *MockFile) Sync() error

Sync mocks base method.

func (*MockFile) Write

func (m *MockFile) Write(p []byte) (int, error)

Write mocks base method.

type MockFileMockRecorder

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

MockFileMockRecorder is the mock recorder for MockFile.

func (*MockFileMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockFileMockRecorder) Read

func (mr *MockFileMockRecorder) Read(p interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockFileMockRecorder) ReadAt

func (mr *MockFileMockRecorder) ReadAt(p, off interface{}) *gomock.Call

ReadAt indicates an expected call of ReadAt.

func (*MockFileMockRecorder) Stat

func (mr *MockFileMockRecorder) Stat() *gomock.Call

Stat indicates an expected call of Stat.

func (*MockFileMockRecorder) Sync

func (mr *MockFileMockRecorder) Sync() *gomock.Call

Sync indicates an expected call of Sync.

func (*MockFileMockRecorder) Write

func (mr *MockFileMockRecorder) Write(p interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockStoredFile

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

MockStoredFile is a mock of StoredFile interface.

func NewMockStoredFile

func NewMockStoredFile(ctrl *gomock.Controller) *MockStoredFile

NewMockStoredFile creates a new mock instance.

func (*MockStoredFile) Abort

func (m *MockStoredFile) Abort(ctx context.Context) error

Abort mocks base method.

func (*MockStoredFile) Close

func (m *MockStoredFile) Close() error

Close mocks base method.

func (*MockStoredFile) EXPECT

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

func (*MockStoredFile) Read

func (m *MockStoredFile) Read(p []byte) (int, error)

Read mocks base method.

func (*MockStoredFile) ReadAt

func (m *MockStoredFile) ReadAt(p []byte, off int64) (int, error)

ReadAt mocks base method.

func (*MockStoredFile) Stat

func (m *MockStoredFile) Stat() (os.FileInfo, error)

Stat mocks base method.

func (*MockStoredFile) Store

func (m *MockStoredFile) Store(ctx context.Context, filename string) error

Store mocks base method.

func (*MockStoredFile) Sync

func (m *MockStoredFile) Sync() error

Sync mocks base method.

func (*MockStoredFile) Write

func (m *MockStoredFile) Write(p []byte) (int, error)

Write mocks base method.

type MockStoredFileMockRecorder

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

MockStoredFileMockRecorder is the mock recorder for MockStoredFile.

func (*MockStoredFileMockRecorder) Abort

func (mr *MockStoredFileMockRecorder) Abort(ctx interface{}) *gomock.Call

Abort indicates an expected call of Abort.

func (*MockStoredFileMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockStoredFileMockRecorder) Read

func (mr *MockStoredFileMockRecorder) Read(p interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockStoredFileMockRecorder) ReadAt

func (mr *MockStoredFileMockRecorder) ReadAt(p, off interface{}) *gomock.Call

ReadAt indicates an expected call of ReadAt.

func (*MockStoredFileMockRecorder) Stat

Stat indicates an expected call of Stat.

func (*MockStoredFileMockRecorder) Store

func (mr *MockStoredFileMockRecorder) Store(ctx, filename interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockStoredFileMockRecorder) Sync

Sync indicates an expected call of Sync.

func (*MockStoredFileMockRecorder) Write

func (mr *MockStoredFileMockRecorder) Write(p interface{}) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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