Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestMilliCPUToQuota (0.22 sec)

  1. pkg/kubelet/kuberuntime/helpers_linux_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/kubelet/cm"
    )
    
    func seccompLocalhostRef(profileName string) string {
    	return filepath.Join(fakeSeccompProfileRoot, profileName)
    }
    
    func TestMilliCPUToQuota(t *testing.T) {
    	for _, testCase := range []struct {
    		msg      string
    		input    int64
    		expected int64
    		period   uint64
    	}{
    		{
    			msg:      "all-zero",
    			input:    int64(0),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/helpers_linux_test.go

    		}
    		if !reflect.DeepEqual(actual.Memory, testCase.expected.Memory) {
    			t.Errorf("unexpected result, test: %v, memory not as expected", testName)
    		}
    	}
    }
    
    func TestMilliCPUToQuota(t *testing.T) {
    	testCases := []struct {
    		input  int64
    		quota  int64
    		period uint64
    	}{
    		{
    			input:  int64(0),
    			quota:  int64(0),
    			period: uint64(0),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top