(b *testing.B)
| 276 | } |
| 277 | |
| 278 | func BenchmarkCountRuneFast(b *testing.B) { |
| 279 | s := "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z" |
| 280 | |
| 281 | b.ResetTimer() |
| 282 | for i := 0; i < b.N; i++ { |
| 283 | countRuneFast(s, ',') |
| 284 | } |
| 285 | } |
nothing calls this directly
no test coverage detected