Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 174 for wren (0.04 sec)

  1. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            property.set(someValue())
    
            when:
            property.finalizeValueOnRead()
    
            then:
            0 * _
    
            when:
            def value = property.orNull
    
            then:
            value == someValue()
    
            and:
            1 * host.beforeRead(null) >> null
        }
    
        def "can disallow changes when host is not ready when unsafe read disallowed"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

        def "can change value to empty map"() {
            when:
            property.set([a: 'b'])
            property.empty()
            then:
            assertValueIs([:])
        }
    
        def "can set value using empty map"() {
            when:
            property.set([:])
            then:
            assertValueIs([:])
        }
    
        def "returns immutable copy of value"() {
            when:
            property.set(['k': 'v'])
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

        }
    
        def "throws NullPointerException when provider returns list with null to property"() {
            given:
            property.addAll(Providers.of([null]))
    
            when:
            property.get()
    
            then:
            def ex = thrown(NullPointerException)
        }
    
        def "throws NullPointerException when adding a null value to the property"() {
            when:
            property.add(null)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            when:
            configuration.extendsFrom(conf("other"))
            then:
            thrown(InvalidUserDataException)
    
            when:
            configuration.dependencies.add(Mock(Dependency))
            then:
            thrown(InvalidUserDataException)
    
            when:
            configuration.dependencies.remove(Mock(Dependency))
            then:
            thrown(InvalidUserDataException)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionIntegrationTest.groovy

            setupBuildWithArtifactTransformOfProjectDependencies()
    
            when:
            configurationCacheRun(":resolve")
    
            then:
            assertTransformed("a.jar", "b.jar")
            outputContains("result = [a.jar.green, b.jar.green]")
    
            when:
            configurationCacheRun(":resolve")
    
            then: // everything is up-to-date
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/DefaultServiceRegistryTest.groovy

            registry.addProvider(new StringProvider())
    
            when:
            registry.get(String)
    
            then:
            ServiceCreationException e = thrown()
            e.message == "Cannot create service of type String using method DefaultServiceRegistryTest\$StringProvider.createString() as required service of type Runnable for parameter #1 is not available."
    
            when:
            registry.get(Number)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:53:25 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/attributes/AbstractConfigurationAttributesResolveIntegrationTest.groovy

                }
            """
    
            when:
            fails ':a:checkDebug'
    
            then:
            failure.assertHasCause "Selected configuration 'someConf' on 'project :b' but it can't be used as a project dependency because it isn't intended for consumption by other components."
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 17:30:11 UTC 2024
    - 64K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

        def "does not nag when service is used by task without a corresponding usesService call and feature preview is NOT enabled"() {
            given:
            serviceImplementation()
            adhocTaskUsingUndeclaredService(1)
    
            when:
            succeeds 'broken'
    
            then:
            outputDoesNotContain "'Task#usesService'"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemReportingIntegrationTest.groovy

            }
    
            when:
            configurationCacheFails 'broken'
    
            then:
            def reportDir1 = reportDir()
            reportDir1?.isDirectory()
    
            when:
            configurationCacheFails 'alsoBroken'
    
            then:
            def reportDir2 = reportDir()
            reportDir2?.isDirectory()
            reportDir2 != reportDir1
    
            when:
            configurationCacheFails 'broken'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

            }
    
        val ConeKotlinType.candidateClassId: ClassId?
            get() {
                return when (this) {
                    is ConeErrorType -> when (val diagnostic = this.diagnostic) {
                        // Tolerate code that misses type parameters while shortening it.
                        is ConeUnmatchedTypeArgumentsError -> diagnostic.symbol.classId
                        else -> null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 16:54:07 UTC 2024
    - 69.6K bytes
    - Viewed (0)
Back to top