Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for Identical (0.15 sec)

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

    			lhs:   UnstructuredToVal([]interface{}{"a", "b"}, &setListSchema),
    			rhs:   UnstructuredToVal([]interface{}{"a", "b", "c"}, &setListSchema),
    			equal: false,
    		},
    		{
    			name:  "identical atomic lists are equal",
    			lhs:   UnstructuredToVal([]interface{}{"a", "b"}, &atomicListSchema),
    			rhs:   UnstructuredToVal([]interface{}{"a", "b"}, &atomicListSchema),
    			equal: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    		return f(nil)
    	}
    	for _, t := range s.terms {
    		assert(t.typ != nil)
    		// x == under(x) for ~x terms
    		u := t.typ
    		if !t.tilde {
    			u = under(u)
    		}
    		if debug {
    			assert(Identical(u, under(u)))
    		}
    		if !f(u) {
    			return false
    		}
    	}
    	return true
    }
    
    // topTypeSet may be used as type set for the empty interface.
    var topTypeSet = _TypeSet{terms: allTermlist}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/builtins.go

    				// x and y should be invalid now, but be conservative
    				// and check below
    			}
    		}
    		if x.mode == invalid || y.mode == invalid {
    			return
    		}
    
    		// both argument types must be identical
    		if !Identical(x.typ, y.typ) {
    			check.errorf(x, InvalidComplex, invalidOp+"%v (mismatched types %s and %s)", call, x.typ, y.typ)
    			return
    		}
    
    		// the argument types must be of floating-point type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/named.go

    // corresponding object, and that object's type is the (possibly generic) Named
    // type. Declared Named types are identical if and only if their pointers are
    // identical. On the other hand, multiple instantiated Named types may be
    // identical even though their pointers are not identical. One has to use
    // Identical to compare them. For instantiated named types, their obj is a
    // synthetic placeholder that records their position of the corresponding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. src/go/types/typeset.go

    		return f(nil)
    	}
    	for _, t := range s.terms {
    		assert(t.typ != nil)
    		// x == under(x) for ~x terms
    		u := t.typ
    		if !t.tilde {
    			u = under(u)
    		}
    		if debug {
    			assert(Identical(u, under(u)))
    		}
    		if !f(u) {
    			return false
    		}
    	}
    	return true
    }
    
    // topTypeSet may be used as type set for the empty interface.
    var topTypeSet = _TypeSet{terms: allTermlist}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. src/go/types/named.go

    // corresponding object, and that object's type is the (possibly generic) Named
    // type. Declared Named types are identical if and only if their pointers are
    // identical. On the other hand, multiple instantiated Named types may be
    // identical even though their pointers are not identical. One has to use
    // Identical to compare them. For instantiated named types, their obj is a
    // synthetic placeholder that records their position of the corresponding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    		{
    			name: "reject two identical indefinite-length text string keys split into chunks differently into struct",
    			in:   hex("a27f626865636c6c6fff017f616864656c6c6fff02"), // {(_ "he", "llo"): 1, (_ "h", "ello"): 2}
    			into: struct {
    				Hello int `json:"hello"`
    			}{},
    			assertOnError: assertIdenticalError(&cbor.DupMapKeyError{Key: string("hello"), Index: 1}),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  8. pkg/kubelet/config/config_test.go

    	channel <- podUpdate
    	expectPodUpdate(t, ch, CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new")))
    
    	// should ignore ADDs that are identical
    	expectNoPodUpdate(t, ch)
    
    	// an kubetypes.ADD should be converted to kubetypes.UPDATE
    	pod := CreateValidPod("foo", "new")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. pkg/kubelet/userns/userns_manager.go

    		err = fmt.Errorf("invalid user namespace configuration: GID and UID mappings should be identical.")
    		return
    	}
    
    	if userNs.UIDMappings[0] != userNs.GIDMappings[0] {
    		err = fmt.Errorf("invalid user namespace configuration: GID and UID mapping should be identical")
    		return
    	}
    
    	// We don't produce configs without root mapped and some runtimes assume it is mapped.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. src/math/rand/rand_test.go

    		testWe[i] = float32(de / m2)
    	}
    	return
    }
    
    // compareUint32Slices returns the first index where the two slices
    // disagree, or <0 if the lengths are the same and all elements
    // are identical.
    func compareUint32Slices(s1, s2 []uint32) int {
    	if len(s1) != len(s2) {
    		if len(s1) > len(s2) {
    			return len(s2) + 1
    		}
    		return len(s1) + 1
    	}
    	for i := range s1 {
    		if s1[i] != s2[i] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top