kubernetes/pkg/kubelet/eviction/mock_cgroup_notifier_test.go

type MockCgroupNotifier

type MockCgroupNotifier_Expecter

func (_m *MockCgroupNotifier) EXPECT() *MockCgroupNotifier_Expecter {}

// Start provides a mock function with given fields: eventCh
func (_m *MockCgroupNotifier) Start(eventCh chan<- struct{}

type MockCgroupNotifier_Start_Call

// Start is a helper method to define mock.On call
//   - eventCh chan<- struct{}
func (_e *MockCgroupNotifier_Expecter) Start(eventCh interface{}

func (_c *MockCgroupNotifier_Start_Call) Run(run func(eventCh chan<- struct{}

func (_c *MockCgroupNotifier_Start_Call) Return() *MockCgroupNotifier_Start_Call {}

func (_c *MockCgroupNotifier_Start_Call) RunAndReturn(run func(chan<- struct{}

// Stop provides a mock function with given fields:
func (_m *MockCgroupNotifier) Stop() {}

type MockCgroupNotifier_Stop_Call

// Stop is a helper method to define mock.On call
func (_e *MockCgroupNotifier_Expecter) Stop() *MockCgroupNotifier_Stop_Call {}

func (_c *MockCgroupNotifier_Stop_Call) Run(run func()) *MockCgroupNotifier_Stop_Call {}

func (_c *MockCgroupNotifier_Stop_Call) Return() *MockCgroupNotifier_Stop_Call {}

func (_c *MockCgroupNotifier_Stop_Call) RunAndReturn(run func()) *MockCgroupNotifier_Stop_Call {}

// NewMockCgroupNotifier creates a new instance of MockCgroupNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockCgroupNotifier(t interface {}