mocks

package
v0.15.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WatcherMock

type WatcherMock struct {
	mock.Mock
}

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

type WatcherMock_Add_Call struct {
	*mock.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 (*WatcherMock_Add_Call) Run

func (*WatcherMock_Add_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL