Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,505 for Mutation (0.4 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/MutationValidator.java

    /**
     * Used to validate mutation of an object and its sub-parts.
     */
    public interface MutationValidator {
        enum MutationType {
            /**
             * The mutation of the resolution strategy of the configuration, i.e. caching, resolution rules etc.
             */
            STRATEGY("resolution strategy"),
    
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 00:26:55 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/MutationGuard.java

     */
    public interface MutationGuard {
        /**
         * Wraps the specified action with mutation disabling code.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 11 21:58:11 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/customModel/internalViews/groovy/build.gradle

    }
    // end::type-declaration[]
    
    // tag::type-registration[]
    // tag::internal-view-mutation[]
    class MyPlugin extends RuleSource {
    // end::internal-view-mutation[]
        @ComponentType
        void registerMyComponent(TypeBuilder<MyComponent> builder) {
            builder.internalView(MyComponentInternal)
        }
    // end::type-registration[]
    // tag::internal-view-mutation[]
        @Mutate
        void mutateMyComponents(ModelMap<MyComponentInternal> components) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. hack/verify-non-mutating-validation.sh

    if [ "$foundMutation" -gt "1" ]; then
      echo "${mutationOutput}"
      echo "It looks like an assignment of a value using the old object.  This is a heuristic check.  If a mutation is happening in validation please fix it."
      echo "If a mutation of arguments is not happening, you can exempt a line using '// +k8s:verify-mutation:reason=clone'."
      exit 1
    fi
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 08 18:37:55 UTC 2021
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/MutationRuleExecutionOrderTest.groovy

                recorder.mutations << "a"
            }
        }
    
        def "mutation rules from the same plugin are applied in the order specified by their signatures"() {
            when:
            modelRegistry.getRoot().applyToSelf(ByPathRules)
    
            then:
            modelRegistry.get("recorder", MutationRecorder).mutations == ["a", "b"]
        }
    
        static class MixedRules extends RuleSource {
            @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelActionRole.java

        Initialize(ModelNode.State.Initialized, true), // Mutation action provided when an element is defined
        Mutate(ModelNode.State.Mutated, true), // Customisations
        Finalize(ModelNode.State.Finalized, true), // Post customisation default values
        Validate(ModelNode.State.SelfClosed, true); // Post mutation validations
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go

    }
    
    // DurationTest is webhook duration test case, used both in mutating and
    // validating plugin test cases.
    type DurationTest struct {
    	Name                string
    	Webhooks            []registrationv1.ValidatingWebhook
    	InitContext         bool
    	IsDryRun            bool
    	ExpectedDurationSum time.Duration
    	ExpectedDurationMax time.Duration
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 47.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/MutationGuardsTest.groovy

    @Subject(MutationGuards)
    class MutationGuardsTest extends Specification {
        def "can get mutation guard of guard aware instance"() {
            given:
            def subject = Mock(WithMutationGuard)
    
            when:
            MutationGuards.of(subject)
    
            then:
            1 * subject.getMutationGuard()
            0 * subject._
        }
    
        def "doesn't get mutation guard of guard unaware instance"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Aug 31 12:53:33 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/MutationGuards.java

            }
        };
    
        /**
         * Returns the identity mutation guard. It protect and do nothing.
         */
        public static MutationGuard identity() {
            return IDENTITY_MUTATION_GUARD;
        }
    
        /**
         * Retrieves the {@code MutationGuard} of the target if it implements {@code WithMutationGuard}, else returns an identity mutation guard performing no guard operations.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 11 21:58:11 UTC 2018
    - 2K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/TaskMutatorTest.groovy

        }
        def nagger = new TaskMutator(task)
    
        def "executes mutation action when in configurable state"() {
            def action = Mock(Runnable)
    
            given:
            state.configurable >> true
    
            when:
            nagger.mutate("Task.thing()", action)
    
            then:
            1 * action.run()
        }
    
        def "mutation action fails when not in configurable state"() {
            def action = Mock(Runnable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 27 11:48:15 UTC 2018
    - 1.6K bytes
    - Viewed (0)
Back to top