Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 394 for realize (0.3 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskCreationBuildOperationIntegrationTest.groovy

            verifyTaskIds()
            verifyTaskDetails(RegisterTaskBuildOperationType, withPath(':', ':foo')).children.empty
            def realize = verifyTaskDetails(RealizeTaskBuildOperationType, withPath(':', ':foo'))
            realize.children.empty
            realize.details.eager == false
        }
    
        def "op during realize are child ops"() {
            given:
            register('foo')
            register('bar')
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/AbstractCollectionModelProjectionTest.groovy

            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == checkable(['bar'])
        }
    
        def "can remove all elements"() {
            when:
            mutate {
                add 'foo'
                add 'bar'
                clear()
            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == checkable([])
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ListModelProjectionTest.groovy

                remove(1)
            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == checkable(['foo', 'baz'])
        }
    
        def "can add using index"() {
            when:
            mutate {
                add 'foo'
                add(0, 'bar')
            }
    
            then:
            def list = registry.realize(collectionPath, collectionType)
            list == ['bar', 'foo']
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

            registry.realize("parent") // TODO - should not need this: parent mutations should be applied before mutating element
    
            expect:
            registry.realize("parent.bar", Bean).value == "prefix: bar"
            registry.realize("parent.foo", String) == "ignore me"
            registry.realize("parent.bar.child1", Bean).value == "prefix: baz"
            registry.realize("parent.bar.child2", String) == "ignore me too"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/NodeBackedModelMapSpec.groovy

        }
    
        void realize() {
            registry.realizeNode(path)
        }
    
        void selfClose() {
            registry.atState(path, ModelNode.State.SelfClosed)
        }
    
        ModelMap<T> realizeAsModelMap() {
            registry.realize(path, modelMapType)
        }
    
        T realizeChild(String name) {
            registry.realize(path.child(name), itemType)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/ManagedNamedTest.groovy

            registry.registerWithInitializer("foo", NamedThingInterface, nodeInitializerRegistry)
    
            then:
            registry.realize("foo", NamedThingInterface).name == "foo"
    
            when:
            registry.registerWithInitializer("bar", NamedThingInterface, nodeInitializerRegistry)
    
            then:
            registry.realize("bar", NamedThingInterface).name == "bar"
        }
    
    
        @Managed
        static abstract class NonNamedThing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ModelSetModelProjectionTest.groovy

            then:
            def set = registry.realize(collectionPath, collectionType)
            def e1 = set.find { it.name == '1' }
            def e2 = set.find { it.name == '1' }
            e1.is(e2)
        }
    
        def "can query set size"() {
            when:
            mutate {
                create { name = '1' }
                create { name = '2' }
            }
    
            then:
            !registry.realize(collectionPath, collectionType).isEmpty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/collections/SortedSetElementSource.java

                    if (collector.getType() == null || type.isAssignableFrom(collector.getType())) {
                        copied.add(collector);
                    }
                }
                realize(copied);
            }
        }
    
        private void realize(Iterable<Collectors.TypedCollector<T>> collectors) {
            for (Collectors.TypedCollector<T> collector : collectors) {
                pending.remove(collector);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ScalarTypesInManagedModelTest.groovy

                    void setUnmanagedReadWriteProperty($type type)
                }
    
            """
    
            then:
            realize(clazz)
    
            where:
            type << ['List<Date>', 'Set<Date>']
    
        }
    
        private void failWhenRealized(Class type, String expected) {
            try {
                realize(type)
                throw new AssertionError("node realisation of type ${type.name} should have failed with a cause of:\n$expected\n")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/WellBehavedPluginTest.groovy

            target << "apply plugin: '${getPluginName()}'\n"
        }
    
        def "does not realize all possible tasks"() {
            // TODO: This isn't done yet, we still realize many tasks
            // Eventually, this should only realize "help"
    
            Assume.assumeFalse(pluginName in [
                'xctest', // Almost, still realizes compileTestSwift
    
                'visual-studio',
                'xcode',
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 13:39:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top