Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatcherMock ¶
WatcherMock is an autogenerated mock type for the Watcher type
func NewWatcherMock ¶
func NewWatcherMock(t mockConstructorTestingTNewWatcherMock) *WatcherMock
NewWatcherMock creates a new instance of WatcherMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WatcherMock) Add ¶
func (_m *WatcherMock) Add(path string, cl watcher.ChangeListener) error
Add provides a mock function with given fields: path, cl
func (*WatcherMock) EXPECT ¶
func (_m *WatcherMock) EXPECT() *WatcherMock_Expecter
type WatcherMock_Add_Call ¶
WatcherMock_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*WatcherMock_Add_Call) Return ¶
func (_c *WatcherMock_Add_Call) Return(_a0 error) *WatcherMock_Add_Call
func (*WatcherMock_Add_Call) Run ¶
func (_c *WatcherMock_Add_Call) Run(run func(path string, cl watcher.ChangeListener)) *WatcherMock_Add_Call
func (*WatcherMock_Add_Call) RunAndReturn ¶
func (_c *WatcherMock_Add_Call) RunAndReturn(run func(string, watcher.ChangeListener) error) *WatcherMock_Add_Call
type WatcherMock_Expecter ¶
type WatcherMock_Expecter struct {
// contains filtered or unexported fields
}
func (*WatcherMock_Expecter) Add ¶
func (_e *WatcherMock_Expecter) Add(path interface{}, cl interface{}) *WatcherMock_Add_Call
Add is a helper method to define mock.On call
- path string
- cl watcher.ChangeListener
Click to show internal directories.
Click to hide internal directories.