- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestStringImmutability (0.62 sec)
-
src/internal/fuzz/mutator_test.go
b.Run(fmt.Sprintf("%T", t), func(b *testing.B) { for i := 0; i < b.N; i++ { 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))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.3K bytes - Viewed (0)