Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for ReportAllocs (0.04 seconds)

  1. src/bytes/bytes_test.go

    		desc := fmt.Sprintf("%q %q %q %d", tt.in, tt.old, tt.new, tt.n)
    		var (
    			in  = []byte(tt.in)
    			old = []byte(tt.old)
    			new = []byte(tt.new)
    		)
    		b.Run(desc, func(b *testing.B) {
    			b.ReportAllocs()
    			for b.Loop() {
    				Replace(in, old, new, tt.n)
    			}
    		})
    	}
    }
    
    type TitleTest struct {
    	in, out string
    }
    
    var TitleTests = []TitleTest{
    	{"", ""},
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Mar 11 03:07:05 GMT 2026
    - 62.9K bytes
    - Click Count (0)
Back to Top