Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 662 for assignment1 (0.27 sec)

  1. 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)
  2. 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)
  3. pkg/kubelet/cm/memorymanager/state/state.go

    }
    
    // NUMANodeState contains NUMA node related information
    type NUMANodeState struct {
    	// NumberOfAssignments contains a number memory assignments from this node
    	// When the container requires memory and hugepages it will increase number of assignments by two
    	NumberOfAssignments int `json:"numberOfAssignments"`
    	// MemoryTable contains NUMA node memory related information
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 08 23:10:00 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  4. test/typeparam/issue45547.go

    package p
    
    func f[T any]() (f, g T) { return f, g }
    
    // Tests for generic function instantiation on the right hande side of multi-value
    // assignments.
    
    func g() {
    	// Multi-value assignment within a function
    	var _, _ = f[int]()
    }
    
    // Multi-value assignment outside a function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 471 bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/transformation/OriginReplacementTest.kt

            with(resolution("configuring { property = value() }")) {
                val assignment = assignments.single()
                val lhs = replaceInnerReceiverWithTopLevel(assignment.lhs.receiverObject)
                val rhs = replaceInnerReceiverWithTopLevel(assignment.rhs)
    
                assertEquals(topLevelReceiver, (lhs as ObjectOrigin.ImplicitThisReceiver).resolvedTo)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:31:36 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. 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)
  7. pkg/kubelet/cm/cpumanager/state/state_checkpoint.go

    	checkpoint.PolicyName = sc.policyName
    	checkpoint.DefaultCPUSet = sc.cache.GetDefaultCPUSet().String()
    
    	assignments := sc.cache.GetCPUAssignments()
    	for pod := range assignments {
    		checkpoint.Entries[pod] = make(map[string]string, len(assignments[pod]))
    		for container, cset := range assignments[pod] {
    			checkpoint.Entries[pod][container] = cset.String()
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 00:59:30 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/memorymanager/policy_static_test.go

    			}
    
    			if err != nil {
    				return
    			}
    
    			assignments := s.GetMemoryAssignments()
    			if !areContainerMemoryAssignmentsEqual(t, assignments, testCase.expectedAssignments) {
    				t.Fatalf("Actual assignments: %v is different from the expected one: %v", assignments, testCase.expectedAssignments)
    			}
    
    			machineState := s.GetMachineState()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 05:49:15 UTC 2023
    - 100.4K bytes
    - Viewed (0)
  9. test/convert2.go

    		x int "foo"
    	}
    	var s S
    	var t T
    	var u struct {
    		x int "bar"
    	}
    	s = s
    	s = t // ERROR "cannot use .* in assignment|incompatible type"
    	s = u // ERROR "cannot use .* in assignment|incompatible type"
    	s = S(s)
    	s = S(t)
    	s = S(u)
    	t = u // ERROR "cannot use .* in assignment|incompatible type"
    	t = T(u)
    }
    
    func _() {
    	type E struct{ x int }
    	type S struct{ x E }
    	type T struct {
    		x E "foo"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 15:55:44 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/conversions1.go

    	type T struct {
    		x int "foo"
    	}
    	var s S
    	var t T
    	var u struct {
    		x int "bar"
    	}
    	s = s
    	s = t // ERRORx `cannot use .* in assignment`
    	s = u // ERRORx `cannot use .* in assignment`
    	s = S(s)
    	s = S(t)
    	s = S(u)
    	t = u // ERRORx `cannot use .* in assignment`
    	t = T(u)
    }
    
    func _() {
    	type E struct{ x int }
    	type S struct{ x E }
    	type T struct {
    		x E "foo"
    	}
    	var s S
    	var t T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5.1K bytes
    - Viewed (0)
Back to top