Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 664 for mutate1 (0.14 sec)

  1. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/DelegatedGradlePropertiesIntegrationTest.kt

                setProperty("projectMutatedBuildProperty", "mutated")
                require(projectMutatedBuildProperty == "mutated")
    
                val projectMutatedUserHomeProperty: String by project
                require(projectMutatedUserHomeProperty == "user home value")
    
                setProperty("projectMutatedUserHomeProperty", "mutated")
                require(projectMutatedUserHomeProperty == "mutated")
            }
            """.trimIndent()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    	tcs := []struct {
    		config   string
    		webhook  string
    		mutated  bool
    		expected string
    	}{
    		{
    			config:   "test-config",
    			webhook:  "test-webhook",
    			mutated:  true,
    			expected: `{"configuration":"test-config","webhook":"test-webhook","mutated":true}`,
    		},
    		{
    			config:   "test-config",
    			webhook:  "test-webhook",
    			mutated:  false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/ManagedNodeBackedModelMapTest.groovy

            when:
            mutate {
                create('foo')
            }
            mutate {
                get('foo')
            }
            realizeAsModelMap()
    
            then:
            def e = thrown ModelRuleExecutionException
            e.cause instanceof WriteOnlyModelViewException
        }
    
        def "cannot read size in mutative method"() {
            when:
            mutate {
                size()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ListModelProjectionTest.groovy

        def "can remove using index"() {
            when:
            mutate {
                add 'foo'
                add 'bar'
                add 'baz'
                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')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/MutationRuleApplicationOrderIntegrationTest.groovy

                    }
    
                    @Mutate
                    void second(@Path("recorder") MutationRecorder recorder) {
                        recorder.mutations << "second source"
                    }
    
                    @Mutate
                    void third(MutationRecorder recorder) {
                        recorder.mutations << "third source"
                    }
    
                    @Mutate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy

            failure.assertHasCause("Exception thrown while executing model rule: RulePlugin#mutate(ModelMap<Task>, ModelMap<Person>)")
            failure.assertHasCause("Attempt to modify a read only view of model element 'people' of type 'ModelMap<Person>' given to rule RulePlugin#mutate(ModelMap<Task>, ModelMap<Person>)")
        }
    
        def "cannot mutate when used as subject of validate rule"() {
            when:
            buildScript '''
                @Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/MutationRuleExecutionOrderTest.groovy

            @Model
            MutationRecorder recorder() {
                new MutationRecorder()
            }
    
            @Mutate
            void b(@Path("recorder") MutationRecorder recorder) {
                recorder.mutations << "b"
            }
    
            @Mutate
            void a(@Path("recorder") MutationRecorder recorder) {
                recorder.mutations << "a"
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InterfaceBackedManagedTypeIntegrationTest.groovy

                    void afterPerson(Person person) {
                        person.name += " after"
                    }
    
                    @Mutate
                    void configurePerson(Person person) {
                        person.name += " configure"
                    }
    
                    @Mutate
                    void addEchoTask(ModelMap<Task> tasks, Person person) {
                        tasks.create("echo") {
    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/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy

                    @Model
                    void managedNamed(ManagedNamed namedThing) {
                    }
    
                    @Mutate
                    void setName(Named named) {
                        named.name = "superclass"
                    }
    
                    @Mutate
                    void addTask(ModelMap<Task> tasks, Named named) {
                        tasks.create("echo") {
                            it.doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/MutateModelRuleExtractor.java

    import javax.annotation.concurrent.ThreadSafe;
    import org.gradle.model.Mutate;
    import org.gradle.model.internal.core.ModelActionRole;
    
    @ThreadSafe
    public class MutateModelRuleExtractor extends AbstractMutationModelRuleExtractor<Mutate> {
        @Override
        protected ModelActionRole getMutationType() {
            return ModelActionRole.Mutate;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1010 bytes
    - Viewed (0)
Back to top