Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for bghelper (3.91 sec)

  1. pilot/pkg/serviceregistry/serviceregistry_test.go

    	istiotest "istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    func setupTest(t *testing.T) (model.ConfigStoreController, kubernetes.Interface, *xdsfake.Updater) {
    	t.Helper()
    	client := kubeclient.NewFakeClient()
    
    	endpoints := model.NewEndpointIndex(model.DisabledCache{})
    	delegate := model.NewEndpointIndexUpdater(endpoints)
    	xdsUpdater := xdsfake.NewWithDelegate(delegate)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  2. src/testing/testing.go

    func (c *common) Skipped() bool {
    	c.mu.RLock()
    	defer c.mu.RUnlock()
    	return c.skipped
    }
    
    // Helper marks the calling function as a test helper function.
    // When printing file and line information, that function will be skipped.
    // Helper may be called simultaneously from multiple goroutines.
    func (c *common) Helper() {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if c.helperPCs == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  3. tests/integration/security/authz_test.go

    	tsts := b.BuildForPorts(t, ports...)
    	tsts.RunAll(t)
    }
    
    func (b *authzTest) Run(t framework.TestContext) {
    	t.Helper()
    	b.from.CallOrFail(t, b.opts)
    }
    
    func (b *authzTest) BuildAndRun(t framework.TestContext) {
    	t.Helper()
    	b.Build(t).Run(t)
    }
    
    type authzTests []authzTest
    
    func (tsts authzTests) checkValid() {
    	path := tsts[0].opts.HTTP.Path
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      private static final long SPIN_THRESHOLD_NANOS = 1000L;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
      static {
        AtomicHelper helper;
        Throwable thrownUnsafeFailure = null;
        Throwable thrownAtomicReferenceFieldUpdaterFailure = null;
    
        try {
          helper = new UnsafeAtomicHelper();
        } catch (Exception | Error unsafeFailure) { // sneaky checked exception
          thrownUnsafeFailure = unsafeFailure;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (1)
  5. guava/src/com/google/common/util/concurrent/AbstractFuture.java

      private static final long SPIN_THRESHOLD_NANOS = 1000L;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
      static {
        AtomicHelper helper;
        Throwable thrownUnsafeFailure = null;
        Throwable thrownAtomicReferenceFieldUpdaterFailure = null;
    
        try {
          helper = new UnsafeAtomicHelper();
        } catch (Exception | Error unsafeFailure) { // sneaky checked exception
          thrownUnsafeFailure = unsafeFailure;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
  6. tensorflow/cc/gradients/math_grad.cc

      return scope.status();
    }
    
    REGISTER_GRADIENT_OP("SelectV2", SelectV2Grad);
    
    // Helper function for unsorted segment ops.
    // Returns 'ids' with negative elements replaced by 0.
    Output GetZeroClippedIndices(const Scope& scope, const Output& ids) {
      return Maximum(scope, ids, ZerosLike(scope, ids));
    }
    
    // Helper function for unsorted segment ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  7. pkg/controller/endpointslice/endpointslice_controller_test.go

    	t.Helper()
    	for i := 0; i < podsCount; i++ {
    		pod := newPod(i, namespace, true, 0, false)
    		esController.podStore.Add(pod)
    	}
    }
    
    func standardSyncService(t *testing.T, esController *endpointSliceController, namespace, serviceName string) {
    	t.Helper()
    	createService(t, esController, namespace, serviceName)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    	}
    }
    
    func callInstanceHandlers(instances []*model.WorkloadInstance, sd *Controller, ev model.Event, t testing.TB) {
    	t.Helper()
    	for _, instance := range instances {
    		sd.WorkloadInstanceHandler(instance, ev)
    	}
    }
    
    func deleteConfigs(configs []*config.Config, store model.ConfigStore, t testing.TB) {
    	t.Helper()
    	for _, cfg := range configs {
    		err := store.Delete(cfg.GroupVersionKind, cfg.Name, cfg.Namespace, nil)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  9. pkg/kubelet/status/status_manager_test.go

    		t.Helper()
    		if state.Terminated == nil || state.Running != nil || state.Waiting != nil {
    			t.Fatalf("unexpected state: %#v", state)
    		}
    		if state.Terminated.ExitCode != exitCode {
    			t.Fatalf("unexpected terminated state: %#v", state.Terminated)
    		}
    	}
    	expectWaiting := func(t *testing.T, state v1.ContainerState) {
    		t.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    )
    
    const (
    	testService = "test"
    )
    
    // eventually polls cond until it completes (returns true) or times out (resulting in a test failure).
    func eventually(t test.Failer, cond func() bool) {
    	t.Helper()
    	retry.UntilSuccessOrFail(t, func() error {
    		if !cond() {
    			return fmt.Errorf("failed to get positive condition")
    		}
    		return nil
    	}, retry.Timeout(time.Second), retry.Delay(time.Millisecond*10))
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
Back to top