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

type MockCPUsProvider

type MockCPUsProvider_Expecter

func (_m *MockCPUsProvider) EXPECT() *MockCPUsProvider_Expecter {}

// GetAllocatableCPUs provides a mock function with given fields:
func (_m *MockCPUsProvider) GetAllocatableCPUs() []int64 {}

type MockCPUsProvider_GetAllocatableCPUs_Call

// GetAllocatableCPUs is a helper method to define mock.On call
func (_e *MockCPUsProvider_Expecter) GetAllocatableCPUs() *MockCPUsProvider_GetAllocatableCPUs_Call {}

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

func (_c *MockCPUsProvider_GetAllocatableCPUs_Call) Return(_a0 []int64) *MockCPUsProvider_GetAllocatableCPUs_Call {}

func (_c *MockCPUsProvider_GetAllocatableCPUs_Call) RunAndReturn(run func() []int64) *MockCPUsProvider_GetAllocatableCPUs_Call {}

// GetCPUs provides a mock function with given fields: podUID, containerName
func (_m *MockCPUsProvider) GetCPUs(podUID string, containerName string) []int64 {}

type MockCPUsProvider_GetCPUs_Call

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

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

func (_c *MockCPUsProvider_GetCPUs_Call) Return(_a0 []int64) *MockCPUsProvider_GetCPUs_Call {}

func (_c *MockCPUsProvider_GetCPUs_Call) RunAndReturn(run func(string, string) []int64) *MockCPUsProvider_GetCPUs_Call {}

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