Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type MockFileSystem
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) MD5Sum(arg0 string) (string, error)
- func (m *MockFileSystem) Open(arg0 string) (*os.File, error)
- func (m *MockFileSystem) ReadFile(arg0 string) ([]byte, error)
- func (m *MockFileSystem) Remove(arg0 string) error
- func (m *MockFileSystem) Rename(arg0, arg1 string) error
- func (m *MockFileSystem) Stat(arg0 string) (fs.FileInfo, error)
- func (m *MockFileSystem) WriteFile(arg0 string, arg1 []byte, arg2 fs.FileMode) error
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) MD5Sum(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) ReadFile(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Stat(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) WriteFile(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFileSystem ¶
type MockFileSystem struct {
// contains filtered or unexported fields
}
MockFileSystem is a mock of FileSystem interface.
func NewMockFileSystem ¶
func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem
NewMockFileSystem creates a new mock instance.
func (*MockFileSystem) EXPECT ¶
func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileSystem) MD5Sum ¶
func (m *MockFileSystem) MD5Sum(arg0 string) (string, error)
MD5Sum mocks base method.
func (*MockFileSystem) Open ¶
func (m *MockFileSystem) Open(arg0 string) (*os.File, error)
Open mocks base method.
func (*MockFileSystem) ReadFile ¶
func (m *MockFileSystem) ReadFile(arg0 string) ([]byte, error)
ReadFile mocks base method.
func (*MockFileSystem) Remove ¶
func (m *MockFileSystem) Remove(arg0 string) error
Remove mocks base method.
func (*MockFileSystem) Rename ¶
func (m *MockFileSystem) Rename(arg0, arg1 string) error
Rename mocks base method.
type MockFileSystemMockRecorder ¶
type MockFileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemMockRecorder is the mock recorder for MockFileSystem.
func (*MockFileSystemMockRecorder) MD5Sum ¶
func (mr *MockFileSystemMockRecorder) MD5Sum(arg0 interface{}) *gomock.Call
MD5Sum indicates an expected call of MD5Sum.
func (*MockFileSystemMockRecorder) Open ¶
func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open.
func (*MockFileSystemMockRecorder) ReadFile ¶
func (mr *MockFileSystemMockRecorder) ReadFile(arg0 interface{}) *gomock.Call
ReadFile indicates an expected call of ReadFile.
func (*MockFileSystemMockRecorder) Remove ¶
func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockFileSystemMockRecorder) Rename ¶
func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
Rename indicates an expected call of Rename.
func (*MockFileSystemMockRecorder) Stat ¶
func (mr *MockFileSystemMockRecorder) Stat(arg0 interface{}) *gomock.Call
Stat indicates an expected call of Stat.
func (*MockFileSystemMockRecorder) WriteFile ¶
func (mr *MockFileSystemMockRecorder) WriteFile(arg0, arg1, arg2 interface{}) *gomock.Call
WriteFile indicates an expected call of WriteFile.