(b *testing.B, e *Echo, req *http.Request)
| 24 | func (w *nopResponseWriter) WriteHeader(int) {} |
| 25 | |
| 26 | func benchServe(b *testing.B, e *Echo, req *http.Request) { |
| 27 | b.Helper() |
| 28 | w := &nopResponseWriter{} |
| 29 | b.ReportAllocs() |
| 30 | b.ResetTimer() |
| 31 | for i := 0; i < b.N; i++ { |
| 32 | w.h = nil |
| 33 | e.ServeHTTP(w, req) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func BenchmarkServeHTTP_Static(b *testing.B) { |
| 38 | e := New() |
no test coverage detected
searching dependent graphs…