This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 480
/
mock_file_watcher.go
77 lines (64 loc) · 2.24 KB
/
mock_file_watcher.go
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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/vmware-tanzu/octant/pkg/dash (interfaces: FileWatcher)
// Package fake is a generated GoMock package.
package fake
import (
reflect "reflect"
fsnotify "github.com/fsnotify/fsnotify"
gomock "github.com/golang/mock/gomock"
)
// MockFileWatcher is a mock of FileWatcher interface.
type MockFileWatcher struct {
ctrl *gomock.Controller
recorder *MockFileWatcherMockRecorder
}
// MockFileWatcherMockRecorder is the mock recorder for MockFileWatcher.
type MockFileWatcherMockRecorder struct {
mock *MockFileWatcher
}
// NewMockFileWatcher creates a new mock instance.
func NewMockFileWatcher(ctrl *gomock.Controller) *MockFileWatcher {
mock := &MockFileWatcher{ctrl: ctrl}
mock.recorder = &MockFileWatcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockFileWatcher) EXPECT() *MockFileWatcherMockRecorder {
return m.recorder
}
// Add mocks base method.
func (m *MockFileWatcher) Add(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Add", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Add indicates an expected call of Add.
func (mr *MockFileWatcherMockRecorder) Add(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockFileWatcher)(nil).Add), arg0)
}
// Errors mocks base method.
func (m *MockFileWatcher) Errors() chan error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Errors")
ret0, _ := ret[0].(chan error)
return ret0
}
// Errors indicates an expected call of Errors.
func (mr *MockFileWatcherMockRecorder) Errors() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Errors", reflect.TypeOf((*MockFileWatcher)(nil).Errors))
}
// Events mocks base method.
func (m *MockFileWatcher) Events() chan fsnotify.Event {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Events")
ret0, _ := ret[0].(chan fsnotify.Event)
return ret0
}
// Events indicates an expected call of Events.
func (mr *MockFileWatcherMockRecorder) Events() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Events", reflect.TypeOf((*MockFileWatcher)(nil).Events))
}