kubernetes/pkg/kubelet/server/stats/testing/mock_summary_provider.go

type MockSummaryProvider

type MockSummaryProvider_Expecter

func (_m *MockSummaryProvider) EXPECT() *MockSummaryProvider_Expecter {}

// Get provides a mock function with given fields: ctx, updateStats
func (_m *MockSummaryProvider) Get(ctx context.Context, updateStats bool) (*v1alpha1.Summary, error) {}

type MockSummaryProvider_Get_Call

// Get is a helper method to define mock.On call
//   - ctx context.Context
//   - updateStats bool
func (_e *MockSummaryProvider_Expecter) Get(ctx interface{}

func (_c *MockSummaryProvider_Get_Call) Run(run func(ctx context.Context, updateStats bool)) *MockSummaryProvider_Get_Call {}

func (_c *MockSummaryProvider_Get_Call) Return(_a0 *v1alpha1.Summary, _a1 error) *MockSummaryProvider_Get_Call {}

func (_c *MockSummaryProvider_Get_Call) RunAndReturn(run func(context.Context, bool) (*v1alpha1.Summary, error)) *MockSummaryProvider_Get_Call {}

// GetCPUAndMemoryStats provides a mock function with given fields: ctx
func (_m *MockSummaryProvider) GetCPUAndMemoryStats(ctx context.Context) (*v1alpha1.Summary, error) {}

type MockSummaryProvider_GetCPUAndMemoryStats_Call

// GetCPUAndMemoryStats is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockSummaryProvider_Expecter) GetCPUAndMemoryStats(ctx interface{}

func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) Run(run func(ctx context.Context)) *MockSummaryProvider_GetCPUAndMemoryStats_Call {}

func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) Return(_a0 *v1alpha1.Summary, _a1 error) *MockSummaryProvider_GetCPUAndMemoryStats_Call {}

func (_c *MockSummaryProvider_GetCPUAndMemoryStats_Call) RunAndReturn(run func(context.Context) (*v1alpha1.Summary, error)) *MockSummaryProvider_GetCPUAndMemoryStats_Call {}

// NewMockSummaryProvider creates a new instance of MockSummaryProvider. 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 NewMockSummaryProvider(t interface {}