Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for otherValue (0.17 sec)

  1. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AbstractAccessTrackingMapTest.groovy

            'existing' | 'existingValue'    | 'existingValue' | 'other'       | 'otherValue'       | 'otherValue'   | true
            'existing' | 'nonexistingValue' | 'existingValue' | 'other'       | 'otherValue'       | 'otherValue'   | false
            'existing' | 'nonexistingValue' | 'existingValue' | 'missing'     | 'missingValue'     | null           | false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. pkg/test/framework/scope_test.go

    			}
    		})
    	}
    }
    
    func TestGet_Slice(t *testing.T) {
    	exp := []*resource.FakeResource{
    		{
    			IDValue:    "child-resource",
    			OtherValue: "child",
    		},
    		{
    			IDValue:    "parent-resource",
    			OtherValue: "parent",
    		},
    	}
    
    	g := NewWithT(t)
    	parent := newScope("parent", nil)
    	parent.add(exp[1], &resourceID{id: exp[1].IDValue})
    	child := newScope("child", parent)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. build-logic/lifecycle/src/main/kotlin/gradlebuild.lifecycle.gradle.kts

        val propertyName = pair.first
        val value = pair.second
        if (hasProperty(propertyName)) {
            val otherValue = property(propertyName)
            if (value.toString() != otherValue.toString()) {
                throw RuntimeException("Attempting to set global property $propertyName to two different values ($value vs $otherValue)")
            }
        }
        extra.set(propertyName, value)
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:39:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. pkg/test/framework/resource/resource.go

    // FakeResource used for testing.
    type FakeResource struct {
    	IDValue    string
    	OtherValue string
    }
    
    func (f *FakeResource) ID() ID {
    	return FakeID(f.IDValue)
    }
    
    // GetOtherValue is an additional method used to distinguish this resource API from others.
    func (f *FakeResource) GetOtherValue() string {
    	return f.OtherValue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 30 01:00:01 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            where:
            key        | oldValue        | expectedValue   | expectedResult
            'existing' | 'existingValue' | 'newValue'      | true
            'existing' | 'otherValue'    | 'existingValue' | false
            'missing'  | 'otherValue'    | null            | false
    
        }
    
        def "method replace(#key, #oldValue, newValue) reports change"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelCheckerTest.groovy

                dummyModel("otherValue"),
                [
                    { it.value }
                ]
            )
    
            then:
            def error = thrown(AssertionError)
            error.message.contains("assert getter(actual) == getter(expected)")
            error.message.contains("       |      |       |  |")
            error.message.contains("       |      |       |  'otherValue'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultGradlePropertiesLoaderTest.groovy

            when:
            def properties = loadAndMergePropertiesWith(emptyMap())
    
            then:
            "value" == properties["prop1"]
            "value" == properties["prop2"]
    
            when:
            properties = loadPropertiesFrom(otherSettingsDir).getProperties()
    
            then:
            "otherValue" == properties["prop1"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 11:52:10 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

                        verify.prop.putAll(['key': 'newValue', 'otherKey': 'otherValue'])
                        verify.expected = ['key': 'newValue', 'otherKey': 'otherValue']
                    }
                }
    
                task replacingPutAllWithProvider {
                    doLast {
                        verify.prop.putAll(provider { ['key': 'newValue', 'otherKey': 'otherValue'] })
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            def attr = Attribute.of(Flavor)
    
            given:
            schema.attribute(attr).compatibilityRules.add(CustomCompatibilityRule)
    
            def value1 = flavor('value')
            def value2 = flavor('otherValue')
    
            expect:
            schema.matcher().selectionSchema.matchValue(attr, value1, value2)
            !schema.matcher().selectionSchema.matchValue(attr, value2, value1)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy

        }
    
        def "write property"() {
            when:
            writeableProperty(JavaTestSubject, "myProperty", String.class).setValue(myProperties, "otherValue")
    
            then:
            readableProperty(JavaTestSubject, String, "myProperty").getValue(myProperties) == "otherValue"
        }
    
        def "write property with multiple setters"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
Back to top