Documentation ¶
Overview ¶
Package mock_afero is a generated GoMock package.
Index ¶
- type MockFile
- func (m *MockFile) Close() error
- func (m *MockFile) EXPECT() *MockFileMockRecorder
- func (m *MockFile) Name() string
- func (m *MockFile) Read(p []byte) (int, error)
- func (m *MockFile) ReadAt(p []byte, off int64) (int, error)
- func (m *MockFile) Readdir(count int) ([]os.FileInfo, error)
- func (m *MockFile) Readdirnames(n int) ([]string, error)
- func (m *MockFile) Seek(offset int64, whence int) (int64, error)
- func (m *MockFile) Stat() (os.FileInfo, error)
- func (m *MockFile) Sync() error
- func (m *MockFile) Truncate(size int64) error
- func (m *MockFile) Write(p []byte) (int, error)
- func (m *MockFile) WriteAt(p []byte, off int64) (int, error)
- func (m *MockFile) WriteString(s string) (int, error)
- type MockFileMockRecorder
- func (mr *MockFileMockRecorder) Close() *gomock.Call
- func (mr *MockFileMockRecorder) Name() *gomock.Call
- func (mr *MockFileMockRecorder) Read(p interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) ReadAt(p, off interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) Readdir(count interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) Readdirnames(n interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) Seek(offset, whence interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) Stat() *gomock.Call
- func (mr *MockFileMockRecorder) Sync() *gomock.Call
- func (mr *MockFileMockRecorder) Truncate(size interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) Write(p interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) WriteAt(p, off interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) WriteString(s interface{}) *gomock.Call
- type MockFs
- func (m *MockFs) Chmod(name string, mode os.FileMode) error
- func (m *MockFs) Chown(name string, uid, gid int) error
- func (m *MockFs) Chtimes(name string, atime, mtime time.Time) error
- func (m *MockFs) Create(name string) (afero.File, error)
- func (m *MockFs) EXPECT() *MockFsMockRecorder
- func (m *MockFs) Mkdir(name string, perm os.FileMode) error
- func (m *MockFs) MkdirAll(path string, perm os.FileMode) error
- func (m *MockFs) Name() string
- func (m *MockFs) Open(name string) (afero.File, error)
- func (m *MockFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (m *MockFs) Remove(name string) error
- func (m *MockFs) RemoveAll(path string) error
- func (m *MockFs) Rename(oldname, newname string) error
- func (m *MockFs) Stat(name string) (os.FileInfo, error)
- type MockFsMockRecorder
- func (mr *MockFsMockRecorder) Chmod(name, mode interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Chown(name, uid, gid interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Chtimes(name, atime, mtime interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Create(name interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Mkdir(name, perm interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) MkdirAll(path, perm interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Name() *gomock.Call
- func (mr *MockFsMockRecorder) Open(name interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) OpenFile(name, flag, perm interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Remove(name interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) RemoveAll(path interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Rename(oldname, newname interface{}) *gomock.Call
- func (mr *MockFsMockRecorder) Stat(name interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockFile) EXPECT() *MockFileMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFile) Readdirnames ¶
Readdirnames 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) EXPECT ¶
func (m *MockFs) EXPECT() *MockFsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.