kubernetes/pkg/kubelet/apis/podresources/testing/memory_provider.go

type MockMemoryProvider

type MockMemoryProvider_Expecter

func (_m *MockMemoryProvider) EXPECT() *MockMemoryProvider_Expecter {}

// GetAllocatableMemory provides a mock function with given fields:
func (_m *MockMemoryProvider) GetAllocatableMemory() []*v1.ContainerMemory {}

type MockMemoryProvider_GetAllocatableMemory_Call

// GetAllocatableMemory is a helper method to define mock.On call
func (_e *MockMemoryProvider_Expecter) GetAllocatableMemory() *MockMemoryProvider_GetAllocatableMemory_Call {}

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

func (_c *MockMemoryProvider_GetAllocatableMemory_Call) Return(_a0 []*v1.ContainerMemory) *MockMemoryProvider_GetAllocatableMemory_Call {}

func (_c *MockMemoryProvider_GetAllocatableMemory_Call) RunAndReturn(run func() []*v1.ContainerMemory) *MockMemoryProvider_GetAllocatableMemory_Call {}

// GetMemory provides a mock function with given fields: podUID, containerName
func (_m *MockMemoryProvider) GetMemory(podUID string, containerName string) []*v1.ContainerMemory {}

type MockMemoryProvider_GetMemory_Call

// GetMemory is a helper method to define mock.On call
//   - podUID string
//   - containerName string
func (_e *MockMemoryProvider_Expecter) GetMemory(podUID interface{}

func (_c *MockMemoryProvider_GetMemory_Call) Run(run func(podUID string, containerName string)) *MockMemoryProvider_GetMemory_Call {}

func (_c *MockMemoryProvider_GetMemory_Call) Return(_a0 []*v1.ContainerMemory) *MockMemoryProvider_GetMemory_Call {}

func (_c *MockMemoryProvider_GetMemory_Call) RunAndReturn(run func(string, string) []*v1.ContainerMemory) *MockMemoryProvider_GetMemory_Call {}

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