1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
|
// Code generated by MockGen. DO NOT EDIT.
// Source: pkg/workceptor/workunitbase.go
//
// Generated by this command:
//
// mockgen -source=pkg/workceptor/workunitbase.go -destination=pkg/workceptor/mock_workceptor/workunitbase.go
//
// Package mock_workceptor is a generated GoMock package.
package mock_workceptor
import (
reflect "reflect"
fsnotify "github.com/fsnotify/fsnotify"
gomock "go.uber.org/mock/gomock"
)
// MockWatcherWrapper is a mock of WatcherWrapper interface.
type MockWatcherWrapper struct {
ctrl *gomock.Controller
recorder *MockWatcherWrapperMockRecorder
isgomock struct{}
}
// MockWatcherWrapperMockRecorder is the mock recorder for MockWatcherWrapper.
type MockWatcherWrapperMockRecorder struct {
mock *MockWatcherWrapper
}
// NewMockWatcherWrapper creates a new mock instance.
func NewMockWatcherWrapper(ctrl *gomock.Controller) *MockWatcherWrapper {
mock := &MockWatcherWrapper{ctrl: ctrl}
mock.recorder = &MockWatcherWrapperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWatcherWrapper) EXPECT() *MockWatcherWrapperMockRecorder {
return m.recorder
}
// Add mocks base method.
func (m *MockWatcherWrapper) Add(name string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Add", name)
ret0, _ := ret[0].(error)
return ret0
}
// Add indicates an expected call of Add.
func (mr *MockWatcherWrapperMockRecorder) Add(name any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockWatcherWrapper)(nil).Add), name)
}
// Close mocks base method.
func (m *MockWatcherWrapper) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockWatcherWrapperMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockWatcherWrapper)(nil).Close))
}
// ErrorChannel mocks base method.
func (m *MockWatcherWrapper) ErrorChannel() chan error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ErrorChannel")
ret0, _ := ret[0].(chan error)
return ret0
}
// ErrorChannel indicates an expected call of ErrorChannel.
func (mr *MockWatcherWrapperMockRecorder) ErrorChannel() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ErrorChannel", reflect.TypeOf((*MockWatcherWrapper)(nil).ErrorChannel))
}
// EventChannel mocks base method.
func (m *MockWatcherWrapper) EventChannel() chan fsnotify.Event {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EventChannel")
ret0, _ := ret[0].(chan fsnotify.Event)
return ret0
}
// EventChannel indicates an expected call of EventChannel.
func (mr *MockWatcherWrapperMockRecorder) EventChannel() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EventChannel", reflect.TypeOf((*MockWatcherWrapper)(nil).EventChannel))
}
// Remove mocks base method.
func (m *MockWatcherWrapper) Remove(path string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Remove", path)
ret0, _ := ret[0].(error)
return ret0
}
// Remove indicates an expected call of Remove.
func (mr *MockWatcherWrapperMockRecorder) Remove(path any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockWatcherWrapper)(nil).Remove), path)
}
|