Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 324 for assignments (0.25 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_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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    	if _, exists := s.assignments[podUID]; !exists {
    		s.assignments[podUID] = make(map[string]cpuset.CPUSet)
    	}
    	s.assignments[podUID][containerName] = cset
    }
    
    func (s *mockState) SetDefaultCPUSet(cset cpuset.CPUSet) {
    	s.defaultCPUSet = cset
    }
    
    func (s *mockState) Delete(podUID string, containerName string) {
    	delete(s.assignments[podUID], containerName)
    	if len(s.assignments[podUID]) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ErrorParsingTest.kt

                        )
                    )
                )""".trimIndent()
            parse(code).assert(expected)
        }
    
        @Test
        fun `missing assignment in one of a series of assignments`() {
            val code = """
                val a = 1
                val b = 2
                val c 3
                val d = 4
                val e = 5
            """.trimIndent()
    
            val expected = """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 09:41:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. src/sort/sort.go

    This is best possible as each element might need a move.
    
    Pay attention when comparing to other optimal algorithms which
    typically count the number of assignments instead of swaps:
    E.g. the optimal algorithm of Dudzinski and Dydek for in-place
    rotations uses O(u + v + gcd(u,v)) assignments which is
    better than our O(3 * (u+v)) as gcd(u,v) <= u.
    
    
    Stable sorting by SymMerge and BlockSwap rotations
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/cpumanager/policy_static.go

    func getAssignedCPUsOfSiblings(s state.State, podUID string, containerName string) cpuset.CPUSet {
    	assignments := s.GetCPUAssignments()
    	cset := cpuset.New()
    	for name, cpus := range assignments[podUID] {
    		if containerName == name {
    			continue
    		}
    		cset = cset.Union(cpus)
    	}
    	return cset
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
Back to top