Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 4,385 for expected_ (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go

    	testCases := []struct {
    		name     string
    		request  *http.Request
    		expected *watchIdentifier
    	}{
    		{
    			name:     "watch all objects",
    			request:  httpRequest("GET", "/api/v1/pods", "watch=true"),
    			expected: newWatchIdentifier("", "pods", "", ""),
    		},
    		{
    			name:     "list all objects",
    			request:  httpRequest("GET", "/api/v1/pods", ""),
    			expected: nil,
    		},
    		{
    			name:     "watch namespace-scoped objects",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 03 14:02:51 UTC 2021
    - 10.4K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        lockB.lock();
        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lockA.lock());
        checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
        firstException = expected;
        // Second time should also fail, with a cached causal chain.
        expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock());
        checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        lockB.lock();
        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lockA.lock());
        checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
        firstException = expected;
        // Second time should also fail, with a cached causal chain.
        expected = assertThrows(PotentialDeadlockException.class, () -> lockA.lock());
        checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go

    	for _, test := range tests {
    		union := test.s1.Union(test.s2)
    		if union.Len() != test.expected.Len() {
    			t.Errorf("Expected union.Len()=%d but got %d", test.expected.Len(), union.Len())
    		}
    
    		if !union.Equal(test.expected) {
    			t.Errorf("Expected union.Equal(expected) but not true.  union:%v expected:%v", union.List(), test.expected.List())
    		}
    	}
    }
    
    func TestStringIntersection(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 03:47:18 UTC 2022
    - 8K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/helper/qos/qos_test.go

    				}),
    			expected: v1.PodQOSBurstable,
    		},
    	}
    	for id, testCase := range testCases {
    		if actual := ComputePodQOS(testCase.pod); testCase.expected != actual {
    			t.Errorf("[%d]: invalid qos pod %s, expected: %s, actual: %s", id, testCase.pod.Name, testCase.expected, actual)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 14:47:37 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/tests/tac-filter.mlir

    // expected-remark@below {{Tac filter (0): filter type: function filter SKIP_TARGET_ANNOTATION, filter_pattern: "^testFunction"}}
    // expected-remark@below {{Tac filter (1): filter type: function filter INCLUDE_TARGET_ANNOTATION, filter_pattern: "testFunctionInclude"}}
    // expected-remark@below {{Tac filter (1) specified but not applied to any op}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 24 01:08:29 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. 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)
  9. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (ArithmeticException expected) {
          assertThat(expected).hasMessageThat().contains("1.0");
          assertThat(expected).hasMessageThat().contains("UP");
        }
      }
    
      public void testCheckNoOverflow_success() {
        MathPreconditions.checkNoOverflow(true, "testCheckNoOverflow_success", 0, 0);
      }
    
      public void testCheckNoOverflow_failure() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/staticpod/utils_test.go

    			expected: "",
    		},
    		{
    			desc: "filled in :: AdvertiseAddress endpoint returns empty",
    			endpoint: &kubeadmapi.APIEndpoint{
    				AdvertiseAddress: "::",
    			},
    			expected: "",
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.desc, func(t *testing.T) {
    			actual := GetAPIServerProbeAddress(test.endpoint)
    			if actual != test.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 15:44:44 UTC 2023
    - 22.6K bytes
    - Viewed (0)
Back to top