Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 5,437 for expectUsed (0.17 sec)

  1. pkg/kubelet/cm/node_container_manager_linux_test.go

    		}
    		cm := &containerManagerImpl{
    			NodeConfig: nc,
    			capacity:   tc.capacity,
    		}
    		for k, v := range cm.GetNodeAllocatableReservation() {
    			expected, exists := tc.expected[k]
    			assert.True(t, exists, "test case %d expected resource %q", idx+1, k)
    			assert.Equal(t, expected.MilliValue(), v.MilliValue(), "test case %d failed for resource %q", idx+1, k)
    		}
    	}
    
    	ephemeralStorageEvictionThreshold := resource.MustParse("100Mi")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 12.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class,
                () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class));
        assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION);
      }
    
      public void testGetCheckedUntimed_ExecutionExceptionError() throws TwoArgConstructorException {
        ExecutionError expected =
            assertThrows(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

        UncheckedExecutionException expected =
            assertThrows(
                UncheckedExecutionException.class,
                () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class));
        assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION);
      }
    
      public void testGetCheckedUntimed_ExecutionExceptionError() throws TwoArgConstructorException {
        ExecutionError expected =
            assertThrows(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/helpers_linux_test.go

    		}
    		if !reflect.DeepEqual(actual.CPUQuota, testCase.expected.CPUQuota) {
    			t.Errorf("unexpected result, test: %v, cpu quota not as expected. Expected: %v, Actual:%v", testName, *testCase.expected.CPUQuota, *actual.CPUQuota)
    		}
    		if !reflect.DeepEqual(actual.CPUShares, testCase.expected.CPUShares) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/generate/generate_test.go

    		t.Errorf("split(%q): got %q expected %q", inLine, got, expected)
    	}
    
    	// Try another undefined variable as an extra check
    	os.Unsetenv("_Z")
    	inLine = "//go:generate -command CMD1 \"ab${_Z}cd\""
    	expected = []string{"-command", "CMD1", "abcd"}
    	got = g.split(inLine + "\n")
    
    	if !reflect.DeepEqual(got, expected) {
    		t.Errorf("split(%q): got %q expected %q", inLine, got, expected)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 20 14:09:12 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  6. pkg/apis/rbac/helpers_test.go

    			requestedSubresource:      "other/segment",
    			expected:                  false,
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			rule := &rbac.PolicyRule{
    				Resources: tc.ruleResources,
    			}
    			actual := rbac.ResourceMatches(rule, tc.combinedRequestedResource, tc.requestedSubresource)
    			if tc.expected != actual {
    				t.Errorf("expected %v, got %v", tc.expected, actual)
    			}
    
    		})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. pkg/kubelet/config/apiserver_test.go

    	newSourceApiserverFromLW(lw, ch)
    
    	got, ok := <-ch
    	if !ok {
    		t.Errorf("Unable to read from channel when expected")
    	}
    	update := got.(kubetypes.PodUpdate)
    	expected := CreatePodUpdate(kubetypes.SET, kubetypes.ApiserverSource, pod1v1)
    	if !apiequality.Semantic.DeepEqual(expected, update) {
    		t.Errorf("Expected %#v; Got %#v", expected, update)
    	}
    
    	// Add another pod
    	fakeWatch.Add(pod2)
    	got, ok = <-ch
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 18:31:03 UTC 2017
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

            value = "Fess,フェス";
            expected = Arrays.asList("Fess", "フェス");
            actual = Arrays.asList(KuromojiCSVUtil.parse(value));
            assertThat(actual, is(expected));
    
            value = "\"Fess,FESS\"";
            expected = Arrays.asList("\"Fess,FESS\"");
            actual = Arrays.asList(KuromojiCSVUtil.parse(value));
            assertThat(actual, is(expected));
    
            value = " ";
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. pkg/securitycontext/accessors_test.go

    			t.Errorf("%d: expected %#v, got %#v", i, expected.RunAsUser, v)
    		}
    		if v := a.RunAsGroup(); !reflect.DeepEqual(expected.RunAsGroup, v) {
    			t.Errorf("%d: expected %#v, got %#v", i, expected.RunAsGroup, v)
    		}
    		if v := a.SeccompProfile(); !reflect.DeepEqual(expected.SeccompProfile, v) {
    			t.Errorf("%d: expected %#v, got %#v", i, expected.SeccompProfile, v)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 16:15:27 UTC 2023
    - 27.8K bytes
    - Viewed (0)
  10. tests/integration/telemetry/policy/traffic_allow_any_test.go

    	"istio.io/istio/pkg/test/framework/components/prometheus"
    )
    
    func TestOutboundTrafficPolicy_AllowAny(t *testing.T) {
    	cases := []*TestCase{
    		{
    			Name:     "HTTP Traffic",
    			PortName: "http",
    			Expected: Expected{
    				Query: prometheus.Query{
    					Metric:      "istio_requests_total",
    					Aggregation: "sum",
    					Labels: map[string]string{
    						"reporter":                 "source",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 18 18:03:23 UTC 2022
    - 5.4K bytes
    - Viewed (0)
Back to top