Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 707 for equality (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/common/values.go

    			// Since we've encountered an unknown field, fallback to unstructured equality checking.
    			ouMap, ok := other.(*unstructuredMap)
    			if !ok {
    				// The compiler ensures equality is against the same type of object, so this should be unreachable
    				return types.MaybeNoSuchOverloadErr(other)
    			}
    			if oValue, ok := ouMap.value[key]; ok {
    				if !equality.Semantic.DeepEqual(value, oValue) {
    					return types.False
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  2. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/ModuleDependencyTest.groovy

     * limitations under the License.
     */
    package org.gradle.plugins.ide.idea.model
    
    import spock.lang.Specification
    
    class ModuleDependencyTest extends Specification {
        def equality() {
            expect:
            new ModuleDependency("a", null).equals(new ModuleDependency("a", "COMPILE"))
            new ModuleDependency("a", "").equals(new ModuleDependency("a", "COMPILE"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/ExtensibleEnum.java

     *
     * @since 4.0.0
     */
    @Experimental
    public interface ExtensibleEnum {
    
        /**
         * The {@code id} uniquely represents a value for this extensible enum.
         * This id should be used to compute the equality and hash code for the instance.
         *
         * @return the id
         */
        @Nonnull
        String id();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 17:18:13 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. pkg/kube/krt/util.go

    // For instance, I can make a transformation from `object => object.name` to only trigger events for changes to the name;
    // the output will be compared (using standard equality checking), and only changes will trigger the handler.
    // Note this is in addition to the normal event mechanics, so this can only filter things further.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultModuleVersionSelectorTest.groovy

    class DefaultModuleVersionSelectorTest extends Specification {
    
        private final static ModuleIdentifier UTIL = DefaultModuleIdentifier.newId("org", "util")
    
    
        def "equality"() {
            def selector = newSelector(UTIL, "1.0")
    
            def same = newSelector(UTIL, "1.0")
            def diffGroup = newSelector(DefaultModuleIdentifier.newId("foo", "util"), "1.0")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/WeakIdentityHashMap.java

     *
     * Keys are stored wrapped in {@code WeakIdentityHashMap.WeakKey} weak reference implementation, that uses {@code System.identityHashCode}
     * for generating hash code and considers referent equality for {@code equals} method.
     */
    class WeakIdentityHashMap<K, V> {
        private final HashMap<WeakKey<K>, V> map = new HashMap<>();
    
        void put(K key, V value) {
            map.put(new WeakKey<>(key), value);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *   <li>If there is no visible constructor or visible static factory method declared by {@code
       *       C}, {@code C} is skipped for equality test.
       *   <li>Equality test is not performed on method return values unless the method is a visible
       *       static factory method whose return type is {@code C} or {@code C}'s subtype.
       * </ul>
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go

    		{"!nil =? nil", &t1, nil, false},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			result := c.x.Equal(c.y)
    			if result != c.result {
    				t.Errorf("Failed equality test for '%v', '%v': expected %+v, got %+v", c.x, c.y, c.result, result)
    			}
    		})
    	}
    }
    
    func TestTimeBefore(t *testing.T) {
    	t1 := NewTime(time.Now())
    	cases := []struct {
    		name string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.go

    			op.checkSuspect(pass, exprs)
    		}
    	})
    	return nil, nil
    }
    
    type boolOp struct {
    	name  string
    	tok   token.Token // token corresponding to this operator
    	badEq token.Token // token corresponding to the equality test that should not be used with this operator
    }
    
    var (
    	or  = boolOp{"or", token.LOR, token.NEQ}
    	and = boolOp{"and", token.LAND, token.EQL}
    )
    
    // commutativeSets returns all side effect free sets of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. pkg/apis/flowcontrol/internalbootstrap/defaults_test.go

    limitations under the License.
    */
    
    package internalbootstrap
    
    import (
    	"fmt"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    
    	flowcontrol "k8s.io/api/flowcontrol/v1"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap"
    )
    
    func TestBootstrapConfigurationWithDefaulted(t *testing.T) {
    	scheme := NewAPFScheme()
    
    	bootstrapFlowSchemas := make([]*flowcontrol.FlowSchema, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top