Documentation ¶
Overview ¶
Package mockfile is a generated GoMock package.
Index ¶
- type MockFile
- func (m *MockFile) Close() error
- func (m *MockFile) EXPECT() *MockFileMockRecorder
- func (m *MockFile) Read(p []byte) (int, error)
- func (m *MockFile) ReadAt(p []byte, off int64) (int, error)
- func (m *MockFile) ReadFrom(r io.Reader) (int64, 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) Write(p []byte) (int, error)
- func (m *MockFile) WriteAt(p []byte, off int64) (int, error)
- func (m *MockFile) WriteString(s string) (int, error)
- type MockFileHelper
- type MockFileHelperMockRecorder
- type MockFileInfo
- type MockFileInfoMockRecorder
- func (mr *MockFileInfoMockRecorder) IsDir() *gomock.Call
- func (mr *MockFileInfoMockRecorder) ModTime() *gomock.Call
- func (mr *MockFileInfoMockRecorder) Mode() *gomock.Call
- func (mr *MockFileInfoMockRecorder) Name() *gomock.Call
- func (mr *MockFileInfoMockRecorder) Size() *gomock.Call
- func (mr *MockFileInfoMockRecorder) Sys() *gomock.Call
- type MockFileMockRecorder
- func (mr *MockFileMockRecorder) Close() *gomock.Call
- func (mr *MockFileMockRecorder) Read(p interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) ReadAt(p, off interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) ReadFrom(r 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) Write(p interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) WriteAt(p, off interface{}) *gomock.Call
- func (mr *MockFileMockRecorder) WriteString(s 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.
type MockFileHelper ¶
type MockFileHelper struct {
// contains filtered or unexported fields
}
MockFileHelper is a mock of FileHelper interface.
func NewMockFileHelper ¶
func NewMockFileHelper(ctrl *gomock.Controller) *MockFileHelper
NewMockFileHelper creates a new mock instance.
func (*MockFileHelper) EXPECT ¶
func (m *MockFileHelper) EXPECT() *MockFileHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileHelper) IsNotExist ¶
func (m *MockFileHelper) IsNotExist(err error) bool
IsNotExist mocks base method.
type MockFileHelperMockRecorder ¶
type MockFileHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockFileHelperMockRecorder is the mock recorder for MockFileHelper.
func (*MockFileHelperMockRecorder) IsNotExist ¶
func (mr *MockFileHelperMockRecorder) IsNotExist(err interface{}) *gomock.Call
IsNotExist indicates an expected call of IsNotExist.
func (*MockFileHelperMockRecorder) MkdirAll ¶
func (mr *MockFileHelperMockRecorder) MkdirAll(path, perm interface{}) *gomock.Call
MkdirAll indicates an expected call of MkdirAll.
func (*MockFileHelperMockRecorder) Stat ¶
func (mr *MockFileHelperMockRecorder) Stat(path interface{}) *gomock.Call
Stat indicates an expected call of Stat.
type MockFileInfo ¶
type MockFileInfo struct {
// contains filtered or unexported fields
}
MockFileInfo is a mock of FileInfo interface.
func NewMockFileInfo ¶
func NewMockFileInfo(ctrl *gomock.Controller) *MockFileInfo
NewMockFileInfo creates a new mock instance.
func (*MockFileInfo) EXPECT ¶
func (m *MockFileInfo) EXPECT() *MockFileInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileInfo) ModTime ¶
func (m *MockFileInfo) ModTime() time.Time
ModTime mocks base method.
type MockFileInfoMockRecorder ¶
type MockFileInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockFileInfoMockRecorder is the mock recorder for MockFileInfo.
func (*MockFileInfoMockRecorder) IsDir ¶
func (mr *MockFileInfoMockRecorder) IsDir() *gomock.Call
IsDir indicates an expected call of IsDir.
func (*MockFileInfoMockRecorder) ModTime ¶
func (mr *MockFileInfoMockRecorder) ModTime() *gomock.Call
ModTime indicates an expected call of ModTime.
func (*MockFileInfoMockRecorder) Mode ¶
func (mr *MockFileInfoMockRecorder) Mode() *gomock.Call
Mode indicates an expected call of Mode.
func (*MockFileInfoMockRecorder) Name ¶
func (mr *MockFileInfoMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockFileInfoMockRecorder) Size ¶
func (mr *MockFileInfoMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size.
func (*MockFileInfoMockRecorder) Sys ¶
func (mr *MockFileInfoMockRecorder) Sys() *gomock.Call
Sys indicates an expected call of Sys.
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) ReadFrom ¶
func (mr *MockFileMockRecorder) ReadFrom(r interface{}) *gomock.Call
ReadFrom indicates an expected call of ReadFrom.
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) 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.