Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for expectation (0.27 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			}
    
    			if len(compilationResults) != len(tt.expectedResults) {
    				t.Fatalf("one test expectation per rule is required")
    			}
    
    			for i, expectedResult := range tt.expectedResults {
    				if !expectedResult.matches(compilationResults[i]) {
    					t.Errorf("result %d does not match expectation: %v", i+1, expectedResult)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set_test.go

    	if err != nil {
    		t.Errorf("Couldn't get key for object %#v: %v", rsSpec, err)
    	}
    
    	// Lowering expectations should lead to a sync that creates a replica, however the
    	// fakePodControl error will prevent this, leaving expectations at 0, 0
    	manager.expectations.CreationObserved(logger, rsKey)
    	rsSpec.Status.Replicas = 1
    	rsSpec.Status.ReadyReplicas = 1
    	rsSpec.Status.AvailableReplicas = 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller.go

    	}
    
    	// Check the expectations of the job before counting active pods, otherwise a new pod can sneak in
    	// and update the expectations after we've retrieved active pods from the store. If a new pod enters
    	// the store after we've checked the expectation, the job sync is just deferred till the next relist.
    	satisfiedExpectations := jm.expectations.SatisfiedExpectations(logger, key)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

    //     if ((n % 2) == 0)
    //       return testing::AssertionSuccess();
    //     else
    //       return testing::AssertionFailure() << n << " is odd";
    //   }
    //
    // Then the failed expectation EXPECT_TRUE(IsEven(Fib(5)))
    // will print the message
    //
    //   Value of: IsEven(Fib(5))
    //     Actual: false (5 is odd)
    //   Expected: true
    //
    // instead of a more opaque
    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

    //     if ((n % 2) == 0)
    //       return testing::AssertionSuccess();
    //     else
    //       return testing::AssertionFailure() << n << " is odd";
    //   }
    //
    // Then the failed expectation EXPECT_TRUE(IsEven(Fib(5)))
    // will print the message
    //
    //   Value of: IsEven(Fib(5))
    //     Actual: false (5 is odd)
    //   Expected: true
    //
    // instead of a more opaque
    //
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  6. pkg/controller/podautoscaler/replica_calculator_test.go

    	finalCPUPercentTarget := int32(target * 100)
    	resourcesUsedRatio := float64(totalUsedCPUOfAllPods) / float64(float64(totalRequestedCPUOfAllPods)*target)
    
    	// i.e. .60 * 20 -> scaled down expectation.
    	finalPods := int32(math.Ceil(resourcesUsedRatio * float64(startPods)))
    
    	// To breach tolerance we will create a utilization ratio difference of tolerance to usageRatioToleranceValue)
    	tc := replicaCalcTestCase{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  7. src/math/big/int_test.go

    	} {
    		i, ok := new(Int).SetString(test.istr, 0)
    		if !ok {
    			t.Errorf("SetString(%s) failed", test.istr)
    			continue
    		}
    
    		// Test against expectation.
    		f, acc := i.Float64()
    		if f != test.f || acc != test.acc {
    			t.Errorf("%s: got %f (%s); want %f (%s)", test.istr, f, acc, test.f, test.acc)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    // than it theoretically should.
    // expectFair indicate whether the QueueSet is expected to be
    // fair in the respective halves of a split scenario;
    // in a non-split scenario this is a singleton with one expectation.
    // expectAllRequests indicates whether all requests are expected to get dispatched.
    // expectedAverages, if provided, replaces the normal calculation of expected results.
    type uniformScenario struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	)
    
    	require.ErrorContains(t, err, `Denied`)
    	require.Equal(t, 1, numCompiles)
    }
    
    // Shows what happens when multiple policies share one param type, then
    // one policy stops using the param. The expectation is the second policy
    // keeps behaving normally
    func TestMultiplePoliciesSharedParamType(t *testing.T) {
    	compiler := &fakeCompiler{}
    	matcher := &fakeMatcher{
    		DefaultMatch: true,
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  10. src/runtime/mgcpacer.go

    	maxStackScan := c.maxStackScan.Load()
    	maxScanWork := int64(scan + maxStackScan + c.globalsScan.Load())
    	if work > scanWorkExpected {
    		// We've already done more scan work than expected. Because our expectation
    		// is based on a steady-state scannable heap size, we assume this means our
    		// heap is growing. Compute a new heap goal that takes our existing runway
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top