- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 313 for mutate1 (0.28 sec)
-
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) -
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) -
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) -
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) -
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) -
test/rotate1.go
Emmanuel Odeke <******@****.***> 1460323946 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 286 bytes - Viewed (0) -
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) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/artifacts/configurations/AbstractRoleBasedConfigurationCreationRequest.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. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3K bytes - Viewed (0) -
cmd/kubeadm/app/componentconfigs/kubelet_unix.go
"k8s.io/utils/ptr" "k8s.io/kubernetes/cmd/kubeadm/app/util/initsystem" ) // Mutate allows applying pre-defined modifications to the config before it's marshaled. func (kc *kubeletConfig) Mutate() error { if err := mutateResolverConfig(&kc.config, isServiceActive); err != nil { return err } return nil } // mutateResolverConfig mutates the ResolverConfig in the kubeletConfig dynamically.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 10:26:46 UTC 2024 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/dial_test.go
u.Host = net.JoinHostPort("127.0.0.1", p) conn, err := DialURL(context.Background(), u, transport) // Make sure dialing doesn't mutate the transport's TLSConfig if !reflect.DeepEqual(tc.TLSConfig, tlsConfigCopy) { t.Errorf("%s: transport's copy of TLSConfig was mutated\n%s", k, cmp.Diff(tc.TLSConfig, tlsConfigCopy)) } if err != nil { if tc.ExpectError == "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 8.4K bytes - Viewed (0)