Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFilesystem
- func (m *MockFilesystem) AreFilesDifferent(firstFilePath, secondFilePath string) (bool, error)
- func (m *MockFilesystem) ClearDir(filePath string) error
- func (m *MockFilesystem) Copy(fromPath, toPath string) error
- func (m *MockFilesystem) DeleteFile(filePath string) error
- func (m *MockFilesystem) DoesExist(path string) bool
- func (m *MockFilesystem) EXPECT() *MockFilesystemMockRecorder
- func (m *MockFilesystem) Extract(tarball, toDir string) error
- func (m *MockFilesystem) Hardlink(filePath, hardlinkPath string) error
- func (m *MockFilesystem) ListFileNamesInDir(dirPath string) ([]string, error)
- func (m *MockFilesystem) MoveFile(fromPath, toPath string) error
- func (m *MockFilesystem) NewFileWatcher(watchedFile string, watchedOps fsnotify.Op) (filesystem.Watcher, error)
- type MockFilesystemMockRecorder
- func (mr *MockFilesystemMockRecorder) AreFilesDifferent(firstFilePath, secondFilePath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) ClearDir(filePath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) Copy(fromPath, toPath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) DeleteFile(filePath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) DoesExist(path any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) Extract(tarball, toDir any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) Hardlink(filePath, hardlinkPath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) ListFileNamesInDir(dirPath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) MoveFile(fromPath, toPath any) *gomock.Call
- func (mr *MockFilesystemMockRecorder) NewFileWatcher(watchedFile, watchedOps any) *gomock.Call
- type MockWatcher
- type MockWatcherMockRecorder
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) AreFilesDifferent ¶
func (m *MockFilesystem) AreFilesDifferent(firstFilePath, secondFilePath string) (bool, error)
AreFilesDifferent mocks base method.
func (*MockFilesystem) ClearDir ¶
func (m *MockFilesystem) ClearDir(filePath string) error
ClearDir mocks base method.
func (*MockFilesystem) Copy ¶
func (m *MockFilesystem) Copy(fromPath, toPath string) error
Copy mocks base method.
func (*MockFilesystem) DeleteFile ¶
func (m *MockFilesystem) DeleteFile(filePath string) error
DeleteFile mocks base method.
func (*MockFilesystem) DoesExist ¶
func (m *MockFilesystem) DoesExist(path string) bool
DoesExist mocks base method.
func (*MockFilesystem) EXPECT ¶
func (m *MockFilesystem) EXPECT() *MockFilesystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFilesystem) Extract ¶
func (m *MockFilesystem) Extract(tarball, toDir string) error
Extract mocks base method.
func (*MockFilesystem) Hardlink ¶
func (m *MockFilesystem) Hardlink(filePath, hardlinkPath string) error
Hardlink mocks base method.
func (*MockFilesystem) ListFileNamesInDir ¶
func (m *MockFilesystem) ListFileNamesInDir(dirPath string) ([]string, error)
ListFileNamesInDir mocks base method.
func (*MockFilesystem) MoveFile ¶
func (m *MockFilesystem) MoveFile(fromPath, toPath string) error
MoveFile mocks base method.
func (*MockFilesystem) NewFileWatcher ¶
func (m *MockFilesystem) NewFileWatcher(watchedFile string, watchedOps fsnotify.Op) (filesystem.Watcher, error)
NewFileWatcher mocks base method.
type MockFilesystemMockRecorder ¶
type MockFilesystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFilesystemMockRecorder is the mock recorder for MockFilesystem.
func (*MockFilesystemMockRecorder) AreFilesDifferent ¶
func (mr *MockFilesystemMockRecorder) AreFilesDifferent(firstFilePath, secondFilePath any) *gomock.Call
AreFilesDifferent indicates an expected call of AreFilesDifferent.
func (*MockFilesystemMockRecorder) ClearDir ¶
func (mr *MockFilesystemMockRecorder) ClearDir(filePath any) *gomock.Call
ClearDir indicates an expected call of ClearDir.
func (*MockFilesystemMockRecorder) Copy ¶
func (mr *MockFilesystemMockRecorder) Copy(fromPath, toPath any) *gomock.Call
Copy indicates an expected call of Copy.
func (*MockFilesystemMockRecorder) DeleteFile ¶
func (mr *MockFilesystemMockRecorder) DeleteFile(filePath any) *gomock.Call
DeleteFile indicates an expected call of DeleteFile.
func (*MockFilesystemMockRecorder) DoesExist ¶
func (mr *MockFilesystemMockRecorder) DoesExist(path any) *gomock.Call
DoesExist indicates an expected call of DoesExist.
func (*MockFilesystemMockRecorder) Extract ¶
func (mr *MockFilesystemMockRecorder) Extract(tarball, toDir any) *gomock.Call
Extract indicates an expected call of Extract.
func (*MockFilesystemMockRecorder) Hardlink ¶
func (mr *MockFilesystemMockRecorder) Hardlink(filePath, hardlinkPath any) *gomock.Call
Hardlink indicates an expected call of Hardlink.
func (*MockFilesystemMockRecorder) ListFileNamesInDir ¶
func (mr *MockFilesystemMockRecorder) ListFileNamesInDir(dirPath any) *gomock.Call
ListFileNamesInDir indicates an expected call of ListFileNamesInDir.
func (*MockFilesystemMockRecorder) MoveFile ¶
func (mr *MockFilesystemMockRecorder) MoveFile(fromPath, toPath any) *gomock.Call
MoveFile indicates an expected call of MoveFile.
func (*MockFilesystemMockRecorder) NewFileWatcher ¶
func (mr *MockFilesystemMockRecorder) NewFileWatcher(watchedFile, watchedOps any) *gomock.Call
NewFileWatcher indicates an expected call of NewFileWatcher.
type MockWatcher ¶
type MockWatcher struct {
// contains filtered or unexported fields
}
MockWatcher is a mock of Watcher interface.
func NewMockWatcher ¶
func NewMockWatcher(ctrl *gomock.Controller) *MockWatcher
NewMockWatcher creates a new mock instance.
func (*MockWatcher) EXPECT ¶
func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWatcher) GetEvent ¶
func (m *MockWatcher) GetEvent() *filesystem.WatcherEvent
GetEvent mocks base method.
func (*MockWatcher) GetNotificationChannel ¶
func (m *MockWatcher) GetNotificationChannel() <-chan struct{}
GetNotificationChannel mocks base method.
type MockWatcherMockRecorder ¶
type MockWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockWatcherMockRecorder is the mock recorder for MockWatcher.
func (*MockWatcherMockRecorder) GetEvent ¶
func (mr *MockWatcherMockRecorder) GetEvent() *gomock.Call
GetEvent indicates an expected call of GetEvent.
func (*MockWatcherMockRecorder) GetNotificationChannel ¶
func (mr *MockWatcherMockRecorder) GetNotificationChannel() *gomock.Call
GetNotificationChannel indicates an expected call of GetNotificationChannel.
func (*MockWatcherMockRecorder) Stop ¶
func (mr *MockWatcherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.