Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 518 for expectGet (0.14 sec)

  1. pkg/apis/apps/v1/defaults_test.go

    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		got, ok := obj2.(*appsv1.DaemonSet)
    		if !ok {
    			t.Errorf("(%d) unexpected object: %v", i, got)
    			t.FailNow()
    		}
    		if !apiequality.Semantic.DeepEqual(got.Spec, expected.Spec) {
    			t.Errorf("(%d) got different than expected\ngot:\n\t%+v\nexpected:\n\t%+v", i, got.Spec, expected.Spec)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Set<Integer>> expected = newHashSet();
        expected.add(ImmutableSet.<Integer>of());
        expected.add(ImmutableSet.of(1));
        expected.add(ImmutableSet.of(2));
        expected.add(ImmutableSet.of(3));
        expected.add(ImmutableSet.of(1, 2));
        expected.add(ImmutableSet.of(1, 3));
        expected.add(ImmutableSet.of(2, 3));
        expected.add(ImmutableSet.of(1, 2, 3));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 47.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    		if actual != c.expected {
    			t.Errorf("expected %v, got %v", c.expected, actual)
    		}
    	}
    }
    
    func TestIntervalBufferIsEmpty(t *testing.T) {
    	cases := []struct {
    		startIndex int
    		endIndex   int
    		expected   bool
    	}{
    		{startIndex: 0, endIndex: 10, expected: false},
    		{startIndex: 5, endIndex: 20, expected: false},
    		{startIndex: 50, endIndex: 50, expected: true},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/helper/helpers_test.go

    			t.Errorf("test %s failed. Expected %v but got %v", test.name, test.exists, keyExists)
    		}
    	}
    }
    
    func TestHugePageUnitSizeFromByteSize(t *testing.T) {
    	tests := []struct {
    		size     int64
    		expected string
    		wantErr  bool
    	}{
    		{
    			size:     1024,
    			expected: "1KB",
    			wantErr:  false,
    		},
    		{
    			size:     33554432,
    			expected: "32MB",
    			wantErr:  false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. pkg/kubelet/images/image_manager_test.go

    			for _, expected := range c.expected {
    				fakeRuntime.CalledFunctions = nil
    				fakeClock.Step(time.Second)
    
    				_, _, err := puller.EnsureImageExists(ctx, pod, container, nil, nil, "")
    				fakeRuntime.AssertCalls(expected.calls)
    				assert.Equal(t, expected.err, err)
    				assert.Equal(t, expected.shouldRecordStartedPullingTime, fakePodPullingTimeRecorder.startedPullingRecorded)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. pkg/api/persistentvolumeclaim/util_test.go

    			if test.spec.DataSource != test.want {
    				t.Errorf("expected condition was not met, test: %s, anyEnabled: %v, xnsEnabled: %v, spec: %+v, expected DataSource: %+v",
    					testName, test.anyEnabled, test.xnsEnabled, test.spec, test.want)
    			}
    			if test.spec.DataSourceRef != test.wantRef {
    				t.Errorf("expected condition was not met, test: %s, anyEnabled: %v, xnsEnabled: %v, spec: %+v, expected DataSourceRef: %+v",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top