Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for some_value (0.31 sec)

  1. src/strings/strings_test.go

    		rune rune
    		want int
    	}{
    		{"", 'a', -1},
    		{"", '☺', -1},
    		{"foo", '☹', -1},
    		{"foo", 'o', 1},
    		{"foo☺bar", '☺', 3},
    		{"foo☺☻☹bar", '☹', 9},
    		{"a A x", 'A', 2},
    		{"some_text=some_value", '=', 9},
    		{"☺a", 'a', 3},
    		{"a☻☺b", '☺', 4},
    
    		// RuneError should match any invalid UTF-8 byte sequence.
    		{"�", '�', 0},
    		{"\xff", '�', 0},
    		{"☻x�", '�', len("☻x")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    		rune rune
    		want int
    	}{
    		{"", 'a', -1},
    		{"", '☺', -1},
    		{"foo", '☹', -1},
    		{"foo", 'o', 1},
    		{"foo☺bar", '☺', 3},
    		{"foo☺☻☹bar", '☹', 9},
    		{"a A x", 'A', 2},
    		{"some_text=some_value", '=', 9},
    		{"☺a", 'a', 3},
    		{"a☻☺b", '☺', 4},
    
    		// RuneError should match any invalid UTF-8 byte sequence.
    		{"�", '�', 0},
    		{"\xff", '�', 0},
    		{"☻x�", '�', len("☻x")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            property.getOrElse(null) == someValue()
        }
    
        def "can set value using chaining method"() {
            given:
            def property = propertyWithNoValue()
            property.value(someValue())
    
            expect:
            property.get() == someValue()
        }
    
        def "can set value using provider"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy

            given:
            def property = propertyWithValue(someValue())
    
            when:
            def copy = property.shallowCopy()
    
            then:
            copy.orNull == someValue()
        }
    
        def "shallow copy of property does not follow changes to original"() {
            given:
            def property = propertyWithValue(someValue())
    
            when:
            def copy = property.shallowCopy()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 12:47:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

            when:
            configurationCacheRun("${setterSwitch}property=someValue")
    
            then:
            configurationCache.assertStateStored()
            outputContains("configuration value = someValue")
            outputContains("execution value = someValue")
    
            when:
            configurationCacheRun("${setterSwitch}property=someValue")
    
            then:
            configurationCache.assertStateLoaded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

        def "can set to null value to discard value"() {
            given:
            def property = property()
            property.set(someValue())
            property.set((Iterable) null)
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(someValue()) == someValue()
            property.getOrElse(null) == null
        }
    
        def "can set null value to remove any added values"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  7. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildScriptClasspathIntegrationTest.java

                    "    println someValue",
                    "    println anotherValue",
                    "    new ImportedClass()",
                    "    new OnDemandImportedClass()",
                    "  }",
                    "}",
                    "ext.a = new ImportedClass()",
                    "ext.b = OnDemandImportedClass",
                    "ext.c = someValue",
                    "ext.d = anotherValue",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultPropertyTest.groovy

        def "can set null value to discard value"() {
            given:
            def property = property()
            property.set(someValue())
            property.set((String) null)
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(someValue()) == someValue()
            property.getOrElse(null) == null
        }
    
        def "can't set null provider to discard value"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. tests/test_param_include_in_schema.py

                {},
                200,
                {"hidden_cookie": None},
            ),
            (
                "/hidden_cookie",
                {"hidden_cookie": "somevalue"},
                200,
                {"hidden_cookie": "somevalue"},
            ),
        ],
    )
    def test_hidden_cookie(path, cookies, expected_status, expected_response):
        client = TestClient(app, cookies=cookies)
        response = client.get(path)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            def unpackedValue = value.get()
            then:
            unpackedValue == someValue()
            1 * sideEffect.execute(someValue())
            0 * _
    
            when:
            unpackedValue = executionTimeValue.toValue().get()
            then:
            unpackedValue == someValue()
            1 * sideEffect.execute(someValue())
            0 * _
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
Back to top