Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 112 for Comparer (0.26 sec)

  1. pilot/pkg/serviceregistry/serviceregistry_test.go

    			return EndpointResponse{
    				Address: e.Address,
    				Port:    e.EndpointPort,
    			}
    		})
    		slices.SortBy(got, func(a EndpointResponse) string {
    			return a.Address
    		})
    		return assert.Compare(got, expected)
    	}, retry.Converge(2), retry.Timeout(time.Second*2), retry.Delay(time.Millisecond*10))
    }
    
    // nolint: unparam
    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. pkg/volume/csi/csi_attacher_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			if len(tc.attachedSpecs) != len(stats) {
    				t.Errorf("expecting %d attachment status, got %d", len(tc.attachedSpecs), len(stats))
    			}
    
    			// compare attachment status for each spec
    			for _, attached := range tc.attachedSpecs {
    				stat, ok := stats[attached.spec]
    				if attached.attached && !ok {
    					t.Error("failed to retrieve attached status for:", attached.spec)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

            pred = 'ugt'
          elif isinstance(op, ast.GtE):
            pred = 'uge'
          elif isinstance(op, ast.NotEq):
            pred = 'ne'
          else:
            raise NotImplementedError('Compare operator not recognized')
    
          ret = self._ssa_name(pred)
          if lhs_ty == TFRTypes.ATTR:
            self._emit_with_loc(
                '\n{} = tfr.equal {}, {} -> i1'.format(ret, lhs, rhs), node)
          else:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/TypeToken.java

          Ordering<K> keyOrdering =
              new Ordering<K>() {
                @Override
                public int compare(K left, K right) {
                  // requireNonNull is safe because we are passing keys in the map.
                  return valueComparator.compare(
                      requireNonNull(map.get(left)), requireNonNull(map.get(right)));
                }
              };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    				t.Errorf("Unexpected PreFilter Status: %v", status)
    			}
    
    			gotResult, gotStatus := p.PostFilter(ctx, state, tt.pod, tt.filteredNodesStatuses)
    			// As we cannot compare two errors directly due to miss the equal method for how to compare two errors, so just need to compare the reasons.
    			if gotStatus.Code() == framework.Error {
    				if diff := cmp.Diff(tt.wantStatus.Reasons(), gotStatus.Reasons()); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    		Event{Type: "eds cache", ID: "tcpstatic.com", Namespace: tcpStatic.Namespace})
    	services := sd.Services()
    	sortServices(services)
    	sortServices(expectedServices)
    	if err := compare(t, services, expectedServices); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestServiceDiscoveryGetService(t *testing.T) {
    	hostname := "*.google.com"
    	hostDNE := "does.not.exist.local"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (HMUL(Q|L)  x y) && !x.rematerializeable() && y.rematerializeable() => (HMUL(Q|L)  y x)
    (HMUL(Q|L)U x y) && !x.rematerializeable() && y.rematerializeable() => (HMUL(Q|L)U y x)
    
    // Fold loads into compares
    // Note: these may be undone by the flagalloc pass.
    (CMP(Q|L|W|B) l:(MOV(Q|L|W|B)load {sym} [off] ptr mem) x) && canMergeLoad(v, l) && clobber(l) => (CMP(Q|L|W|B)load {sym} [off] ptr x mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  8. pkg/controller/volume/persistentvolume/binder_test.go

    )
    
    // Test single call to syncClaim and syncVolume methods.
    //  1. Fill in the controller with initial data
    //  2. Call the tested function (syncClaim/syncVolume) via
    //     controllerTest.testCall *once*.
    //  3. Compare resulting volumes and claims with expected volumes and claims.
    func TestSync(t *testing.T) {
    	labels := map[string]string{
    		"foo": "true",
    		"bar": "false",
    	}
    
    	tests := []controllerTest{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 65.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

          Comparator<? super E> comparator) {
        return new TreeSet<>(checkNotNull(comparator));
      }
    
      /**
       * Creates an empty {@code Set} that uses identity to determine equality. It compares object
       * references, instead of calling {@code equals}, to determine whether a provided object matches
       * an element in the set. For example, {@code contains} returns {@code false} when passed an
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  10. cmd/test-utils_test.go

    	if r == 0 {
    		r = reseed()
    	}
    	// constants from Numerical Recipes
    	r = r*1664525 + 1013904223
    	randN = r
    	randmu.Unlock()
    	return strconv.Itoa(int(1e9 + r%1e9))[1:]
    }
    
    // isSameType - compares two object types via reflect.TypeOf
    func isSameType(obj1, obj2 interface{}) bool {
    	return reflect.TypeOf(obj1) == reflect.TypeOf(obj2)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
Back to top