Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParsePercentage (0.19 sec)

  1. pkg/kubelet/eviction/helpers_test.go

    		if actual := hasNodeCondition(testCase.inputs, testCase.item); actual != testCase.result {
    			t.Errorf("Test case: %s, expected: %v, actual: %v", testName, testCase.result, actual)
    		}
    	}
    }
    
    func TestParsePercentage(t *testing.T) {
    	testCases := map[string]struct {
    		hasError bool
    		value    float32
    	}{
    		"blah": {
    			hasError: true,
    		},
    		"25.5%": {
    			value: 0.255,
    		},
    		"foo%": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
Back to top