Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 579 for expectGet (0.13 sec)

  1. pkg/proxy/servicechangetracker_test.go

    			if len(newServices) != len(tc.expected) {
    				t.Fatalf("expected %d new, got %d: %v", len(tc.expected), len(newServices), dump.Pretty(newServices))
    			}
    			for svcKey, expectedInfo := range tc.expected {
    				svcInfo, exists := newServices[svcKey].(*BaseServicePortInfo)
    				if !exists {
    					t.Fatalf("[%s] expected to find key %s", tc.desc, svcKey)
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  2. cmd/signature-v4_test.go

    				},
    				"Policy": []string{"policy"},
    			},
    			expected: ErrNone,
    		},
    	}
    
    	// Run each test case individually.
    	for i, testCase := range testCases {
    		_, code := doesPolicySignatureMatch(testCase.form)
    		if code != testCase.expected {
    			t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(code))
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    			recognizes, unknown, err := s.RecognizesData(tc.in)
    			if recognizes != tc.recognizes {
    				t.Errorf("expected recognized to be %t, got %t", tc.recognizes, recognizes)
    			}
    			if unknown {
    				t.Error("expected unknown to be false, got true")
    			}
    			if err != nil {
    				t.Errorf("expected nil error, got: %v", err)
    			}
    		})
    	}
    }
    
    type stubWriter struct {
    	n   int
    	err error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  4. pkg/apis/apps/v1beta1/defaults_test.go

    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1beta1.Deployment)
    		if !ok {
    			t.Errorf("unexpected object: %v", got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    			t.Errorf("object mismatch!\nexpected:\n\t%+v\ngot:\n\t%+v", got.Spec, expected.Spec)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

              BigIntegerMath.divide(p, ZERO, mode);
              fail("Expected ArithmeticException");
            } catch (ArithmeticException expected) {
            }
          }
        }
      }
    
      public void testFactorial() {
        BigInteger expected = BigInteger.ONE;
        for (int i = 1; i <= 200; i++) {
          expected = expected.multiply(BigInteger.valueOf(i));
          assertEquals(expected, BigIntegerMath.factorial(i));
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. pkg/controller/deployment/progress_test.go

    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			got := dc.requeueStuckDeployment(ctx, test.d, test.status)
    			if got != test.expected {
    				t.Errorf("%s: got duration: %v, expected duration: %v", test.name, got, test.expected)
    			}
    		})
    	}
    }
    
    func TestSyncRolloutStatus(t *testing.T) {
    	pds := int32(60)
    	testTime := metav1.Date(2017, 2, 15, 18, 49, 00, 00, time.UTC)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. cmd/object_api_suite_test.go

    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[0].Name)
    		}
    		if result.Objects[1].Name != "newPrefix2" {
    			t.Errorf("%s: Expected the object name to be `%s`, but instead found `%s`", instanceType, "newPrefix", result.Objects[1].Name)
    		}
    		if result.Objects[2].Name != "obj0" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException");
        } catch (NullPointerException expected) {
        }
    
        try {
          builder.add("a", null, "b");
          fail("expected NullPointerException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. src/math/rand/v2/rand_test.go

    func (sr *statsResults) checkSimilarDistribution(expected *statsResults) error {
    	if !nearEqual(sr.mean, expected.mean, expected.closeEnough, expected.maxError) {
    		s := fmt.Sprintf("mean %v != %v (allowed error %v, %v)", sr.mean, expected.mean, expected.closeEnough, expected.maxError)
    		fmt.Println(s)
    		return errors.New(s)
    	}
    	if !nearEqual(sr.stddev, expected.stddev, expected.closeEnough, expected.maxError) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. security/pkg/nodeagent/cache/secretcache_test.go

    		expected string
    	}{
    		{
    			name:     "no certs",
    			certs:    []string{},
    			expected: "",
    		},
    		{
    			name:     "single cert",
    			certs:    []string{"a"},
    			expected: "a",
    		},
    		{
    			name:     "multiple certs",
    			certs:    []string{"a", "b"},
    			expected: "a\nb",
    		},
    		{
    			name:     "existing newline",
    			certs:    []string{"a\n", "b"},
    			expected: "a\nb",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top