Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,088 for expectGet (0.39 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/kubeadm/app/util/version_test.go

    	for _, tc := range cases {
    		t.Run(fmt.Sprintf("input:%s/expected:%s", tc.input, tc.expected), func(t *testing.T) {
    			tag := KubernetesVersionToImageTag(tc.input)
    			t.Logf("kubernetesVersionToImageTag: Input: %q. Result: %q. Expected: %q", tc.input, tag, tc.expected)
    			if tag != tc.expected {
    				t.Errorf("failed KubernetesVersionToImageTag: Input: %q. Result: %q. Expected: %q", tc.input, tag, tc.expected)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 03:30:51 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. internal/bucket/object/lock/lock_test.go

    			},
    			expected: ObjectLegalHold{Status: LegalHoldOff},
    		},
    		{
    			metadata: map[string]string{
    				"x-amz-object-lock-legal-hold": "X",
    			},
    			expected: ObjectLegalHold{Status: ""},
    		},
    	}
    
    	for i, tt := range tests {
    		o := GetObjectLegalHoldMeta(tt.metadata)
    		if o.Status != tt.expected.Status {
    			t.Fatalf("Case %d expected %v, got %v", i, tt.expected.Status, o.Status)
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. src/crypto/internal/bigmod/nat_test.go

    	if out.Equal(expected) != 1 {
    		t.Errorf("%+v != %+v", out, expected)
    	}
    }
    
    func TestModSub(t *testing.T) {
    	m := modulusFromBytes([]byte{13})
    	x := &Nat{[]uint{6}}
    	y := &Nat{[]uint{7}}
    	x.Sub(y, m)
    	expected := &Nat{[]uint{12}}
    	if x.Equal(expected) != 1 {
    		t.Errorf("%+v != %+v", x, expected)
    	}
    	x.Sub(y, m)
    	expected = &Nat{[]uint{5}}
    	if x.Equal(expected) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/IntMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (int x : NEGATIVE_INTEGER_CANDIDATES) {
          try {
            IntMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/deadness_analysis_test.cc

        // produce the same deadness.  But we're not that smart today.
        EXPECT_EQ(predicate_map[ControlOutputFor(iv0)],
                  "{#true,&,*iv0/cond:0}<fr0>");
        EXPECT_EQ(predicate_map[ControlOutputFor(iv1)],
                  "{#true,&,*iv1/cond:0}<fr0>");
        EXPECT_EQ(predicate_map[ControlOutputFor(iv2)],
                  "{#true,&,*iv2/cond:0}<fr0>");
        EXPECT_EQ(predicate_map[ControlOutputFor(add0)],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top