Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 664 for mutate1 (0.19 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

    - Method mutate(java.lang.String) is not a valid rule method: A method annotated with @Mutate must have void return type."""
        }
    
        static class NoSubjectMutationRule extends RuleSource {
            @Mutate
            void mutate() {}
        }
    
        def "mutation rule must have a subject"() {
            when:
            extract(NoSubjectMutationRule)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. src/internal/fuzz/mutator.go

    package fuzz
    
    import (
    	"encoding/binary"
    	"fmt"
    	"math"
    	"unsafe"
    )
    
    type mutator struct {
    	r       mutatorRand
    	scratch []byte // scratch slice to avoid additional allocations
    }
    
    func newMutator() *mutator {
    	return &mutator{r: newPcgRand()}
    }
    
    func (m *mutator) rand(n int) int {
    	return m.r.intn(n)
    }
    
    func (m *mutator) randByteOrder() binary.ByteOrder {
    	if m.r.bool() {
    		return binary.LittleEndian
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/Mutate.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Denotes that the {@link RuleSource} method rule carrying this annotation mutates the rule subject.
     * <p>
     * Mutate rules execute after {@link Defaults} rules, but before {@link Finalize} rules.
     * The first parameter of the rule is the rule subject, which is mutable for the duration of the rule.
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

                }
            }
            registry.configure(ModelActionRole.Mutate) {
                it.path("b").descriptor("b-mutate").action { Bean b ->
                    b.value = "b-mutate"
                }
            }
            registry.configure(ModelActionRole.Mutate) {
                it.path("a").descriptor("a-mutate").action { Bean a ->
                    a.value = "a-mutate"
                }
            }
    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

        ModelType<ModelMap<T>> getModelMapType() {
            ModelTypes.modelMap(itemType)
        }
    
        void mutate(@DelegatesTo(ModelMap) Closure<?> action) {
            registry.mutate(ModelReference.of(path, modelMapType), ClosureBackedAction.of(action))
        }
    
        void mutateWithoutDelegation(Action<ModelMap<T>> action) {
            registry.mutate(ModelReference.of(path, modelMapType), action)
        }
    
        void realize() {
    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. test/escape_mutations.go

    func g(s string) { // ERROR "s does not escape, mutate, or call"
    	sink = &([]byte(s))[10] // ERROR "\(\[\]byte\)\(s\) escapes to heap"
    }
    
    func h(out []byte, s string) { // ERROR "mutates param: out derefs=0" "s does not escape, mutate, or call"
    	copy(out, []byte(s)) // ERROR "zero-copy string->\[\]byte conversion" "\(\[\]byte\)\(s\) does not escape"
    }
    
    func i(s string) byte { // ERROR "s does not escape, mutate, or call"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 18 11:58:37 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/apiclient/idempotency.go

    // the cluster and mutator callback will be called on it, then an Update of the mutated ConfigMap will be performed. This function is resilient
    // to conflicts, and a retry will be issued if the ConfigMap was modified on the server between the refresh and the update (while the mutation was
    // taking place)
    func CreateOrMutateConfigMap(client clientset.Interface, cm *v1.ConfigMap, mutator ConfigMapMutator) error {
    	var lastError error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/artifacts/configurations/RoleBasedConfigurationCreationRequest.java

         *
         * This method will emit a detailed deprecation method with suggestions if the usage is inconsistent.  It will then attempt to mutate
         * the usage to match the expectation.  If the usage cannot be mutated, it will throw an exception.
         *
         * Does <strong>NOT</strong> check anything to do with deprecated usage.
         *
         * @param conf the existing configuration
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 13:42:17 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/internal/fuzz/mutator_test.go

    				m.r = newPcgRand()
    				m.mutate([]any{t}, workerSharedMemSize)
    			}
    		})
    	}
    }
    
    func TestStringImmutability(t *testing.T) {
    	v := []any{"hello"}
    	m := newMutator()
    	m.mutate(v, 1024)
    	original := v[0].(string)
    	originalCopy := make([]byte, len(original))
    	copy(originalCopy, []byte(original))
    	for i := 0; i < 25; i++ {
    		m.mutate(v, 1024)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission_test.go

    			managedFields.Manager = ""
    			return managedFields, false
    		},
    	}
    
    	for name, mutate := range managedFieldsMutators {
    		t.Run(name, func(t *testing.T) {
    			mutated, shouldReset := mutate(validManagedFieldsEntry)
    			validEntries := []metav1.ManagedFieldsEntry{validManagedFieldsEntry}
    			mutatedEntries := []metav1.ManagedFieldsEntry{mutated}
    
    			obj := &v1.ConfigMap{}
    			obj.SetManagedFields(validEntries)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 12 21:32:54 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top