Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 565 for Equal (0.02 sec)

  1. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     *   <li>comparing each pair of objects within the same equality group returns true
     *   <li>comparing each pair of objects from different equality groups returns false
     *   <li>the hash codes of any two equal objects are equal
     * </ul>
     *
     * <p>When a test fails, the error message labels the objects involved in the failed comparison as
     * follows:
     *
     * <ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_contrib.go

    	switch op {
    	case opLt:
    		return left.Before(right)
    	case opLte:
    		return left.Before(right) || left.Equal(right)
    	case opGt:
    		return left.After(right)
    	case opGte:
    		return left.After(right) || left.Equal(right)
    	case opEq:
    		return left.Equal(right)
    	case opIneq:
    		return !left.Equal(right)
    	}
    	// This case does not happen
    	return false
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Objects.java

      private Objects() {}
    
      /**
       * Determines whether two possibly-null objects are equal. Returns:
       *
       * <ul>
       *   <li>{@code true} if {@code a} and {@code b} are both null.
       *   <li>{@code true} if {@code a} and {@code b} are both non-null and they are equal according to
       *       {@link Object#equals(Object)}.
       *   <li>{@code false} in all other situations.
       * </ul>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapDifference.java

        /** Returns the value from the right map (possibly null). */
        @ParametricNullness
        V rightValue();
    
        /**
         * Two instances are considered equal if their {@link #leftValue()} values are equal and their
         * {@link #rightValue()} values are also equal.
         */
        @Override
        boolean equals(@CheckForNull Object other);
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 04 13:28:27 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  5. internal/cachevalue/cache_test.go

    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	if !t1.Equal(t2) {
    		t.Fatalf("expected time to be equal: %s != %s", t1, t2)
    	}
    
    	time.Sleep(3 * time.Second)
    
    	t3, err := cache.GetWithCtx(ctx)
    	if err != nil {
    		t.Fatalf("expected nil err, got %v", err)
    	}
    
    	if t1.Equal(t3) {
    		t.Fatalf("expected time to be un-equal: %s == %s", t1, t3)
    	}
    }
    
    func TestCache(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/healthServer_test.go

    	installReady.Store(true)
    	watchReady.Store(true)
    	assert.Equal(t, installReady.Load(), true)
    	assert.Equal(t, watchReady.Load(), true)
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusOK)
    
    	watchReady.Store(false)
    	assert.Equal(t, watchReady.Load(), false)
    	assert.Equal(t, installReady.Load(), true)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

        assertFalse(
            "A List should not equal another List containing different elements.",
            getList().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListContainingNull() {
        List<E> other = new ArrayList<>(getSampleElements());
        other.set(other.size() / 2, null);
        assertFalse(
            "Two Lists should not be equal if exactly one of them has null at a given index.",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/cni-watcher_test.go

    		p, err := pluginServer.getPodWithRetry(log, pod.Name, pod.Namespace)
    		assert.NoError(t, err)
    		assert.Equal(t, p, pod)
    	})
    	t.Run("no pod", func(t *testing.T) {
    		p, err := pluginServer.getPodWithRetry(log, "fake", pod.Namespace)
    		assert.Error(t, err)
    		assert.Equal(t, p, nil)
    	})
    	t.Run("pod out of ambient", func(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4_test.go

    		if err != tt.expectedErr {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, tt.expectedErr, err)
    		}
    		if !bytes.Equal(chunkSize, tt.chunkSize) {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, string(tt.chunkSize), string(chunkSize))
    		}
    		if !bytes.Equal(chunkSignature, tt.chunkSignature) {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, string(tt.chunkSignature), string(chunkSignature))
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/MapDifference.java

        /** Returns the value from the right map (possibly null). */
        @ParametricNullness
        V rightValue();
    
        /**
         * Two instances are considered equal if their {@link #leftValue()} values are equal and their
         * {@link #rightValue()} values are also equal.
         */
        @Override
        boolean equals(@CheckForNull Object other);
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 04 13:28:27 UTC 2021
    - 3.5K bytes
    - Viewed (0)
Back to top