Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 528 for assignments (0.15 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. src/cmd/compile/internal/types2/assignments.go

    	err.report()
    }
    
    // initVars type-checks assignments of initialization expressions orig_rhs
    // to variables lhs.
    // If returnStmt is non-nil, initVars type-checks the implicit assignment
    // of result expressions orig_rhs to function result parameters lhs.
    func (check *Checker) initVars(lhs []*Var, orig_rhs []syntax.Expr, returnStmt syntax.Stmt) {
    	context := "assignment"
    	if returnStmt != nil {
    		context = "return statement"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/state/state_mem.go

    	s.Lock()
    	defer s.Unlock()
    
    	s.assignments = a.Clone()
    	klog.InfoS("Updated CPUSet assignments", "assignments", a)
    }
    
    func (s *stateMemory) Delete(podUID string, containerName string) {
    	s.Lock()
    	defer s.Unlock()
    
    	delete(s.assignments[podUID], containerName)
    	if len(s.assignments[podUID]) == 0 {
    		delete(s.assignments, podUID)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/state/state_checkpoint_test.go

    			}
    
    			state.SetDefaultCPUSet(tc.defaultCPUset)
    			state.SetCPUAssignments(tc.assignments)
    
    			state.ClearState()
    			if !cpuset.New().Equals(state.GetDefaultCPUSet()) {
    				t.Fatal("cleared state with non-empty default cpu set")
    			}
    			for pod := range tc.assignments {
    				for container := range tc.assignments[pod] {
    					if _, ok := state.GetCPUSet(pod, container); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/conventions/ConventionsResolutionProcessor.kt

     */
    internal
    object ConventionsResolutionProcessor {
        fun process(resolutionResult: ResolutionResult): Map<String, SoftwareTypeConventionResolutionResults> {
            val assignments = resolutionResult.assignments.groupBy { assignment ->
                getSoftwareType(assignment.lhs.receiverObject).function.simpleName
            }
            val additions = resolutionResult.additions.groupBy { addition ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/state/state_checkpoint_test.go

    }
    
    func TestCheckpointStateHelpers(t *testing.T) {
    	testCases := []struct {
    		description  string
    		machineState NUMANodeMap
    		assignments  ContainerMemoryAssignments
    	}{
    		{
    			description: "One container",
    			assignments: ContainerMemoryAssignments{
    				"pod": map[string][]Block{
    					"container1": {
    						{
    							NUMAAffinity: []int{0},
    							Type:         v1.ResourceMemory,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/AssignmentTrace.kt

            val assignmentResolver = assignmentResolverFactory()
            val elementResults = buildList {
                val assignments = resolutionResult.conventionAssignments + resolutionResult.assignments
                assignments.forEach { (lhs, rhs, callId, method) ->
                    add(
                        when (val additionResult = assignmentResolver.addAssignment(lhs, rhs, method, callId.generationId)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 19 16:59:01 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt

            )
        )
    
        @Test
        fun `type-checks assignment of subtype to superclass type`() {
            val result = schema.resolve(
                """
                superClassProp = sub()
                """.trimIndent()
            )
    
            assertEquals(1, result.assignments.size)
        }
    
        @Test
        fun `type-checks assignment of subtype to super interface type`() {
            val result = schema.resolve(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. 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)
Back to top