Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for otherValue (0.18 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

            def proxyClass = generate(SomeTypeWithReadOnlyProperty)
            def impl = proxyClass.newInstance(state, typeConverter)
    
            when:
            impl.otherValue {
                value = "12"
            }
    
            then:
            1 * state.get("otherValue") >> prop
            1 * prop.setValue("12")
            0 * state._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // (1-5/Integer.MAX_VALUE).
        double otherValue = 16.0 * 5.0 / Integer.MAX_VALUE + 25.0 * (1.0 - 5.0 / Integer.MAX_VALUE);
        assertThat(
                Quantiles.scale(scale).indexes(0, scale, otherIndex).compute(SIXTEEN_SQUARES_DOUBLES))
            .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
            .containsExactly(
                0, SIXTEEN_SQUARES_MIN, scale, SIXTEEN_SQUARES_MAX, otherIndex, otherValue);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
Back to top