Documentation ¶
Overview ¶
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.
Index ¶
- type MockDriver
- func (m *MockDriver) CreateDir(dirPath string, perm os.FileMode) error
- func (m *MockDriver) CreateFile(filePath string, data []byte) error
- func (m *MockDriver) Delete(filePath string) error
- func (m *MockDriver) DeleteAll(path string) error
- func (m *MockDriver) EXPECT() *MockDriverMockRecorder
- func (m *MockDriver) Exist(filePath string) bool
- func (m *MockDriver) Glob(pattern string) ([]string, error)
- func (m *MockDriver) ReadDir(dirPath string) ([]os.FileInfo, error)
- func (m *MockDriver) ReadFile(filePath string) ([]byte, error)
- func (m *MockDriver) Rename(old, file string) error
- func (m *MockDriver) Stat(filePath string) (os.FileInfo, error)
- type MockDriverMockRecorder
- func (mr *MockDriverMockRecorder) CreateDir(dirPath, perm interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) CreateFile(filePath, data interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) Delete(filePath interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) DeleteAll(path interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) Exist(filePath interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) Glob(pattern interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) ReadDir(dirPath interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) ReadFile(filePath interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) Rename(old, file interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) Stat(filePath interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDriver ¶
type MockDriver struct {
// contains filtered or unexported fields
}
MockDriver is a mock of Driver interface.
func NewMockDriver ¶
func NewMockDriver(ctrl *gomock.Controller) *MockDriver
NewMockDriver creates a new mock instance.
func (*MockDriver) CreateDir ¶
func (m *MockDriver) CreateDir(dirPath string, perm os.FileMode) error
CreateDir mocks base method.
func (*MockDriver) CreateFile ¶
func (m *MockDriver) CreateFile(filePath string, data []byte) error
CreateFile mocks base method.
func (*MockDriver) Delete ¶
func (m *MockDriver) Delete(filePath string) error
Delete mocks base method.
func (*MockDriver) DeleteAll ¶
func (m *MockDriver) DeleteAll(path string) error
DeleteAll mocks base method.
func (*MockDriver) EXPECT ¶
func (m *MockDriver) EXPECT() *MockDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDriver) Exist ¶
func (m *MockDriver) Exist(filePath string) bool
Exist mocks base method.
func (*MockDriver) Glob ¶
func (m *MockDriver) Glob(pattern string) ([]string, error)
Glob mocks base method.
func (*MockDriver) ReadDir ¶
func (m *MockDriver) ReadDir(dirPath string) ([]os.FileInfo, error)
ReadDir mocks base method.
func (*MockDriver) ReadFile ¶
func (m *MockDriver) ReadFile(filePath string) ([]byte, error)
ReadFile mocks base method.
func (*MockDriver) Rename ¶
func (m *MockDriver) Rename(old, file string) error
Rename mocks base method.
type MockDriverMockRecorder ¶
type MockDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockDriverMockRecorder is the mock recorder for MockDriver.
func (*MockDriverMockRecorder) CreateDir ¶
func (mr *MockDriverMockRecorder) CreateDir(dirPath, perm interface{}) *gomock.Call
CreateDir indicates an expected call of CreateDir.
func (*MockDriverMockRecorder) CreateFile ¶
func (mr *MockDriverMockRecorder) CreateFile(filePath, data interface{}) *gomock.Call
CreateFile indicates an expected call of CreateFile.
func (*MockDriverMockRecorder) Delete ¶
func (mr *MockDriverMockRecorder) Delete(filePath interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDriverMockRecorder) DeleteAll ¶
func (mr *MockDriverMockRecorder) DeleteAll(path interface{}) *gomock.Call
DeleteAll indicates an expected call of DeleteAll.
func (*MockDriverMockRecorder) Exist ¶
func (mr *MockDriverMockRecorder) Exist(filePath interface{}) *gomock.Call
Exist indicates an expected call of Exist.
func (*MockDriverMockRecorder) Glob ¶
func (mr *MockDriverMockRecorder) Glob(pattern interface{}) *gomock.Call
Glob indicates an expected call of Glob.
func (*MockDriverMockRecorder) ReadDir ¶
func (mr *MockDriverMockRecorder) ReadDir(dirPath interface{}) *gomock.Call
ReadDir indicates an expected call of ReadDir.
func (*MockDriverMockRecorder) ReadFile ¶
func (mr *MockDriverMockRecorder) ReadFile(filePath interface{}) *gomock.Call
ReadFile indicates an expected call of ReadFile.
func (*MockDriverMockRecorder) Rename ¶
func (mr *MockDriverMockRecorder) Rename(old, file interface{}) *gomock.Call
Rename indicates an expected call of Rename.
func (*MockDriverMockRecorder) Stat ¶
func (mr *MockDriverMockRecorder) Stat(filePath interface{}) *gomock.Call
Stat indicates an expected call of Stat.