mockAfero

package
v0.8.2 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_afero is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Name

func (m *MockFile) Name() string

Name mocks base method.

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) Readdir

func (m *MockFile) Readdir(count int) ([]os.FileInfo, error)

Readdir mocks base method.

func (*MockFile) Readdirnames

func (m *MockFile) Readdirnames(n int) ([]string, error)

Readdirnames mocks base method.

func (*MockFile) Seek

func (m *MockFile) Seek(offset int64, whence int) (int64, error)

Seek 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) Truncate

func (m *MockFile) Truncate(size int64) error

Truncate mocks base method.

func (*MockFile) Write

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

Write mocks base method.

func (*MockFile) WriteAt

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

WriteAt mocks base method.

func (*MockFile) WriteString

func (m *MockFile) WriteString(s string) (int, error)

WriteString 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) Name

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

Name indicates an expected call of Name.

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) Readdir

func (mr *MockFileMockRecorder) Readdir(count interface{}) *gomock.Call

Readdir indicates an expected call of Readdir.

func (*MockFileMockRecorder) Readdirnames

func (mr *MockFileMockRecorder) Readdirnames(n interface{}) *gomock.Call

Readdirnames indicates an expected call of Readdirnames.

func (*MockFileMockRecorder) Seek

func (mr *MockFileMockRecorder) Seek(offset, whence interface{}) *gomock.Call

Seek indicates an expected call of Seek.

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) Truncate

func (mr *MockFileMockRecorder) Truncate(size interface{}) *gomock.Call

Truncate indicates an expected call of Truncate.

func (*MockFileMockRecorder) Write

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

Write indicates an expected call of Write.

func (*MockFileMockRecorder) WriteAt

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

WriteAt indicates an expected call of WriteAt.

func (*MockFileMockRecorder) WriteString

func (mr *MockFileMockRecorder) WriteString(s interface{}) *gomock.Call

WriteString indicates an expected call of WriteString.

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) Chmod

func (m *MockFs) Chmod(name string, mode os.FileMode) error

Chmod mocks base method.

func (*MockFs) Chown

func (m *MockFs) Chown(name string, uid, gid int) error

Chown mocks base method.

func (*MockFs) Chtimes

func (m *MockFs) Chtimes(name string, atime, mtime time.Time) error

Chtimes mocks base method.

func (*MockFs) Create

func (m *MockFs) Create(name string) (afero.File, 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) Mkdir

func (m *MockFs) Mkdir(name string, perm os.FileMode) error

Mkdir mocks base method.

func (*MockFs) MkdirAll

func (m *MockFs) MkdirAll(path string, perm os.FileMode) error

MkdirAll mocks base method.

func (*MockFs) Name

func (m *MockFs) Name() string

Name mocks base method.

func (*MockFs) Open

func (m *MockFs) Open(name string) (afero.File, error)

Open mocks base method.

func (*MockFs) OpenFile

func (m *MockFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

OpenFile mocks base method.

func (*MockFs) Remove

func (m *MockFs) Remove(name string) error

Remove mocks base method.

func (*MockFs) RemoveAll

func (m *MockFs) RemoveAll(path string) error

RemoveAll mocks base method.

func (*MockFs) Rename

func (m *MockFs) Rename(oldname, newname string) error

Rename mocks base method.

func (*MockFs) Stat

func (m *MockFs) Stat(name string) (os.FileInfo, error)

Stat mocks base method.

type MockFsMockRecorder

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

MockFsMockRecorder is the mock recorder for MockFs.

func (*MockFsMockRecorder) Chmod

func (mr *MockFsMockRecorder) Chmod(name, mode interface{}) *gomock.Call

Chmod indicates an expected call of Chmod.

func (*MockFsMockRecorder) Chown

func (mr *MockFsMockRecorder) Chown(name, uid, gid interface{}) *gomock.Call

Chown indicates an expected call of Chown.

func (*MockFsMockRecorder) Chtimes

func (mr *MockFsMockRecorder) Chtimes(name, atime, mtime interface{}) *gomock.Call

Chtimes indicates an expected call of Chtimes.

func (*MockFsMockRecorder) Create

func (mr *MockFsMockRecorder) Create(name interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockFsMockRecorder) Mkdir

func (mr *MockFsMockRecorder) Mkdir(name, perm interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir.

func (*MockFsMockRecorder) MkdirAll

func (mr *MockFsMockRecorder) MkdirAll(path, perm interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll.

func (*MockFsMockRecorder) Name

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

Name indicates an expected call of Name.

func (*MockFsMockRecorder) Open

func (mr *MockFsMockRecorder) Open(name interface{}) *gomock.Call

Open indicates an expected call of Open.

func (*MockFsMockRecorder) OpenFile

func (mr *MockFsMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call

OpenFile indicates an expected call of OpenFile.

func (*MockFsMockRecorder) Remove

func (mr *MockFsMockRecorder) Remove(name interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockFsMockRecorder) RemoveAll

func (mr *MockFsMockRecorder) RemoveAll(path interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll.

func (*MockFsMockRecorder) Rename

func (mr *MockFsMockRecorder) Rename(oldname, newname interface{}) *gomock.Call

Rename indicates an expected call of Rename.

func (*MockFsMockRecorder) Stat

func (mr *MockFsMockRecorder) Stat(name interface{}) *gomock.Call

Stat indicates an expected call of Stat.

Jump to

Keyboard shortcuts

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