(b *testing.B)
| 600 | } |
| 601 | |
| 602 | func BenchmarkServeHTTPSimple(b *testing.B) { |
| 603 | test := testRequest{ |
| 604 | name: "ok", |
| 605 | endpoint: "ok", |
| 606 | expectedStatus: http.StatusOK, |
| 607 | expectedBody: []byte(http.StatusText(http.StatusOK)), |
| 608 | } |
| 609 | |
| 610 | benchmarkServeHTTP(b, test) |
| 611 | } |
| 612 | |
| 613 | func BenchmarkServeHTTPLargeFile(b *testing.B) { |
| 614 | test := testRequest{ |
nothing calls this directly
no test coverage detected