Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,988 for expectGet (0.23 sec)

  1. pkg/kubelet/kuberuntime/helpers_linux_test.go

    			input:    int64(5),
    			period:   uint64(10000),
    			expected: minQuotaPeriod,
    		},
    		{
    			msg:      "5 input 5k period and default quota expected",
    			input:    int64(5),
    			period:   uint64(5000),
    			expected: minQuotaPeriod,
    		},
    		{
    			msg:      "9 input 10k period and default quota expected",
    			input:    int64(9),
    			period:   uint64(10000),
    			expected: minQuotaPeriod,
    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/kuberuntime/convert_test.go

    		assert.Equal(t, test.expected, actual)
    	}
    }
    
    func TestConvertToRuntimeAPIImageSpec(t *testing.T) {
    	testCases := []struct {
    		input    kubecontainer.ImageSpec
    		expected *runtimeapi.ImageSpec
    	}{
    		{
    			input: kubecontainer.ImageSpec{
    				Image:          "test",
    				RuntimeHandler: "",
    				Annotations:    nil,
    			},
    			expected: &runtimeapi.ImageSpec{
    				Image:          "test",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. pilot/pkg/model/policyattachment_test.go

    			nsName := types.NamespacedName{Name: "policy1", Namespace: "default"}
    			matcher := tt.selection.ShouldAttachPolicy(mockKind, nsName, tt.policy)
    
    			if matcher != tt.expected {
    				t.Errorf("Expected %v, but got %v", tt.expected, matcher)
    			}
    		})
    	}
    }
    
    type mockPolicyTargetGetter struct {
    	targetRef  *v1beta1.PolicyTargetReference
    	targetRefs []*v1beta1.PolicyTargetReference
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/LongMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer_test.go

    				}
    				if reason != invocation.expected.reason {
    					t.Errorf("(call %d of %d) expected reason %q, got %q", i+1, len(tc.calls), invocation.expected.reason, reason)
    				}
    				if err.Error() != invocation.expected.error.Error() {
    					t.Errorf("(call %d of %d) expected error %q, got %q", i+1, len(tc.calls), invocation.expected.error.Error(), err.Error())
    				}
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. pkg/kubelet/server/auth_test.go

    		subpath  string
    		path     string
    		expected bool
    	}{
    		"empty": {subpath: "", path: "", expected: true},
    
    		"match 1": {subpath: "foo", path: "foo", expected: true},
    		"match 2": {subpath: "/foo", path: "/foo", expected: true},
    		"match 3": {subpath: "/foo/", path: "/foo/", expected: true},
    		"match 4": {subpath: "/foo/bar", path: "/foo/bar", expected: true},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/LongMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 20:15:57 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/apidiscovery/v2/fuzzer_test.go

    		require.NoError(t, err)
    		actual := o2.(*v2.APIGroupDiscoveryList)
    
    		if !reflect.DeepEqual(expected, actual) {
    			t.Error(cmp.Diff(expected, actual))
    		}
    	}
    
    	// v2beta1 -> v2 -> v2beta1
    	for i := 0; i < 100; i++ {
    		expected := &v2beta1.APIGroupDiscoveryList{}
    		fuzzer.Fuzz(expected)
    		expected.TypeMeta = metav1.TypeMeta{
    			Kind:       "APIGroupDiscoveryList",
    			APIVersion: "apidiscovery.k8s.io/v2beta1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(UNCHECKED_EXCEPTION, expected.getCause());
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionError() {
        try {
          getUnchecked(FAILED_FUTURE_ERROR);
          fail();
        } catch (ExecutionError expected) {
          assertEquals(ERROR, expected.getCause());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(UNCHECKED_EXCEPTION, expected.getCause());
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionError() {
        try {
          getUnchecked(FAILED_FUTURE_ERROR);
          fail();
        } catch (ExecutionError expected) {
          assertEquals(ERROR, expected.getCause());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top