Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,299 for Mutation (0.28 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. subprojects/core/src/main/java/org/gradle/api/internal/DefaultDomainObjectSet.java

         * Any exception thrown by the action will veto the mutation.
         *
         * TODO: Combine this with the MutationGuard or rework CompositeDomainObject to behave with MutationGuard/MutationValidator.
         * The mutation validators used in DefaultConfiguration only expect to be used with add/remove methods and fail when we
         * correctly try to also prevent all/withType/etc mutation methods.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/MutationRuleApplicationOrderIntegrationTest.groovy

            succeeds "echo"
    
            and:
            output.contains "mutations: a, b"
        }
    
        def "mutation rules are executed in a fixed and arbitrary order"() {
            when:
            buildFile << '''
                class FirstSource extends RuleSource {
                    @Mutate
                    void first(MutationRecorder recorder) {
                        recorder.mutations << "first source"
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLock.java

    public interface FileLock extends Closeable, FileAccess {
        /**
         * Returns true if the most recent mutation method ({@link #updateFile(Runnable)} or {@link #writeFile(Runnable)} attempted by any process succeeded
         * (ie a process did not crash while updating the target file).
         *
         * Returns false if no mutation method has ever been called for the target file.
         */
        boolean getUnlockedCleanly();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider.go

    limitations under the License.
    */
    
    package mutation
    
    import (
    	"k8s.io/apiserver/pkg/cel/mutation/common"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    // TypeProvider is a specialized CEL type provider that understands
    // the Object type alias that is used to construct an Apply configuration for
    // a mutation operation.
    type TypeProvider struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 21:02:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top