Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FuzzReplace (0.07 sec)

  1. src/bytes/bytes_test.go

    			out := ReplaceAll(in, old, new)
    			if s := string(out); s != tt.out {
    				t.Errorf("ReplaceAll(%q, %q, %q) = %q, want %q", tt.in, tt.old, tt.new, s, tt.out)
    			}
    		}
    	}
    }
    
    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) {
    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