Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for assignments (0.2 sec)

  1. src/go/types/assignments.go

    // if necessary by attempting to convert untyped values to the appropriate
    // type. context describes the context in which the assignment takes place.
    // Use T == nil to indicate assignment to an untyped blank identifier.
    // If the assignment check fails, x.mode is set to invalid.
    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			testCase.description, testCase.expErr, err)
    	}
    
    	if testCase.expCPUAlloc {
    		cset, found := st.assignments[string(testCase.pod.UID)][container.Name]
    		if !found {
    			t.Errorf("StaticPolicy Allocate() error (%v). expected container %v to be present in assignments %v",
    				testCase.description, container.Name, st.assignments)
    		}
    
    		if !reflect.DeepEqual(cset, testCase.expCSet) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    	tcases := returnTestCases()
    
    	for _, tc := range tcases {
    		topology, _ := topology.Discover(&machineInfo)
    
    		var activePods []*v1.Pod
    		for p := range tc.assignments {
    			pod := v1.Pod{}
    			pod.UID = types.UID(p)
    			for c := range tc.assignments[p] {
    				container := v1.Container{}
    				container.Name = c
    				pod.Spec.Containers = append(pod.Spec.Containers, container)
    			}
    			activePods = append(activePods, &pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/assign.go

    		// Check for reasons why we may need to compute later expressions
    		// before this assignment happens.
    
    		if name == nil {
    			// Not a direct assignment to a declared variable.
    			// Conservatively assume any memory access might alias.
    			memWrite = true
    			continue
    		}
    
    		if name.Class == ir.PPARAMOUT && ir.CurFunc.HasDefer() {
    			// Assignments to a result parameter in a function with defers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/reflectObject.kt

            val referenceResolution = PropertyReferenceResolution(objectOrigin, it)
            when (val assignment = context.resolveAssignment(referenceResolution)) {
                is Assigned -> it to PropertyValueReflection(reflect(assignment.objectOrigin, context), assignment.assignmentMethod)
                else -> if (it.hasDefaultValue) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/stmt0.go

    }
    
    func assignments1() {
    	b, i, f, c, s := false, 1, 1.0, 1i, "foo"
    	b = i /* ERRORx `cannot use .* in assignment` */
    	i = f /* ERRORx `cannot use .* in assignment` */
    	f = c /* ERRORx `cannot use .* in assignment` */
    	c = s /* ERRORx `cannot use .* in assignment` */
    	s = b /* ERRORx `cannot use .* in assignment` */
    
    	v0, v1, v2 := 1 /* ERROR "assignment mismatch" */ , 2, 3, 4
    	_, _, _ = v0, v1, v2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/staticinit/sched.go

    	if !s.seenMutation {
    		s.seenMutation = mayModifyPkgVar(rhs)
    	}
    
    	if allBlank(lhs) && !AnySideEffects(rhs) {
    		return true // discard
    	}
    
    	// Only worry about simple "l = r" assignments. The OAS2*
    	// assignments mostly necessitate dynamic execution anyway.
    	if len(lhs) > 1 {
    		return false
    	}
    
    	lno := ir.SetPos(n)
    	defer func() { base.Pos = lno }()
    
    	nam := lhs[0].(*ir.Name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. src/net/lookup.go

    )
    
    // protocols contains minimal mappings between internet protocol
    // names and numbers for platforms that don't have a complete list of
    // protocol numbers.
    //
    // See https://www.iana.org/assignments/protocol-numbers
    //
    // On Unix, this map is augmented by readProtocols via lookupProtocol.
    var protocols = map[string]int{
    	"icmp":      1,
    	"igmp":      2,
    	"tcp":       6,
    	"udp":       17,
    	"ipv6-icmp": 58,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  9. src/internal/reflectlite/value.go

    	default:
    		// Value is direct, and so is the interface.
    		e.Data = v.ptr
    	}
    	// Now, fill in the type portion. We're very careful here not
    	// to have any operation between the e.word and e.typ assignments
    	// that would let the garbage collector observe the partially-built
    	// interface value.
    	e.Type = t
    	return i
    }
    
    // unpackEface converts the empty interface i to a Value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/net/lookup_test.go

    		sep = " "
    	}
    	fmt.Fprintf(&buf, "]")
    	return buf.String()
    }
    
    func TestLookupPort(t *testing.T) {
    	// See https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
    	//
    	// Please be careful about adding new test cases.
    	// There are platforms which have incomplete mappings for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top