Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,505 for Mutation (0.33 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. subprojects/core-api/src/main/java/org/gradle/api/artifacts/DependencyConstraint.java

        /**
         * Sets the reason why this dependency constraint should be used.
         *
         * @since 4.6
         */
        void because(@Nullable String reason);
    
        /**
         * Returns the attributes for this constraint. Mutation of the attributes of a constraint must be done through
         * the {@link #attributes(Action)} method.
         *
         * @return the attributes container for this dependency
         *
         * @since 4.8
         */
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 22 14:14:42 UTC 2019
    - 2.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/mutation/optional_test.go

    limitations under the License.
    */
    
    package mutation
    
    import (
    	"strings"
    	"testing"
    
    	celtypes "github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    
    	"k8s.io/apiserver/pkg/cel/mutation/common"
    )
    
    // TestCELOptional is an exploration test to demonstrate how CEL optional library
    // behave for the use cases that the mutation library requires.
    func TestCELOptional(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 21:52:39 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/ResolutionStrategyInternal.java

         */
        ResolutionStrategyInternal copy();
    
        /**
         * Sets the validator to invoke before mutation. Any exception thrown by the action will veto the mutation.
         */
        void setMutationValidator(MutationValidator action);
    
        /**
         * Returns the dependency locking provider linked to this resolution strategy.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/mutation/mock_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package mutation
    
    import (
    	"strings"
    
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    
    	"k8s.io/apiserver/pkg/cel/mutation/common"
    )
    
    // mockTypeResolver is a mock implementation of TypeResolver that
    // allows the object to contain any field.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeresolver_test.go

    */
    
    package unstructured
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/apiserver/pkg/cel/environment"
    	"k8s.io/apiserver/pkg/cel/mutation"
    )
    
    func TestTypeProvider(t *testing.T) {
    	for _, tc := range []struct {
    		name          string
    		expression    string
    		expectedValue any
    	}{
    		{
    			name:          "not an object",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/QueryAndMutateFromWithTypeGetByNameDomainObjectContainerIntegrationTest.groovy

     */
    
    package org.gradle.api
    
    abstract class QueryAndMutateFromWithTypeGetByNameDomainObjectContainerIntegrationTest extends AbstractDomainObjectContainerIntegrationTest {
        def "can execute query and mutation methods #method.key from withType.getByName"() {
            buildFile << """
                testContainer.withType(testContainer.type).getByName("realized") {
                    ${method.value}
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 1.6K bytes
    - Viewed (0)
Back to top