Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStringImmutability (0.62 sec)

  1. 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)
Back to top