(b *testing.B)
| 6 | ) |
| 7 | |
| 8 | func BenchmarkWrap(b *testing.B) { |
| 9 | b.ReportAllocs() |
| 10 | b.StopTimer() |
| 11 | resp := httptest.NewRecorder() |
| 12 | |
| 13 | b.ReportAllocs() |
| 14 | b.StartTimer() |
| 15 | for b.Loop() { |
| 16 | wrapped := Wrap(resp, Hooks{}) |
| 17 | if wrapped == nil { |
| 18 | b.Fatal() |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | func BenchmarkWrappedWriteWithHook(b *testing.B) { |
| 24 | var total int64 |
nothing calls this directly
no test coverage detected
searching dependent graphs…