Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for differentImpl (0.2 sec)

  1. src/bytes/bytes_test.go

    }
    
    func FuzzReplace(f *testing.F) {
    	for _, tt := range ReplaceTests {
    		f.Add([]byte(tt.in), []byte(tt.old), []byte(tt.new), tt.n)
    	}
    	f.Fuzz(func(t *testing.T, in, old, new []byte, n int) {
    		differentImpl := func(in, old, new []byte, n int) []byte {
    			var out Buffer
    			if n < 0 {
    				n = math.MaxInt
    			}
    			for i := 0; i < len(in); {
    				if n == 0 {
    					out.Write(in[i:])
    					break
    				}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top