Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getIntOrPercentValueSafely (0.4 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    		},
    		{
    			input:      FromString("40%%"),
    			expectErr:  true,
    			expectPerc: false,
    		},
    	}
    	for _, test := range tests {
    		t.Run("", func(t *testing.T) {
    			value, isPercent, err := getIntOrPercentValueSafely(&test.input)
    			if test.expectVal != value {
    				t.Fatalf("expected value does not match, expected: %d, got: %d", test.expectVal, value)
    			}
    			if test.expectPerc != isPercent {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top