(b *testing.B)
| 460 | } |
| 461 | |
| 462 | func BenchmarkParallelGithubDefault(b *testing.B) { |
| 463 | DefaultWriter = os.Stdout |
| 464 | router := New() |
| 465 | githubConfigRouter(router) |
| 466 | |
| 467 | req, _ := http.NewRequest(http.MethodPost, "/repos/manucorporat/sse/git/blobs", nil) |
| 468 | |
| 469 | b.RunParallel(func(pb *testing.PB) { |
| 470 | // Each goroutine has its own bytes.Buffer. |
| 471 | for pb.Next() { |
| 472 | w := httptest.NewRecorder() |
| 473 | router.ServeHTTP(w, req) |
| 474 | } |
| 475 | }) |
| 476 | } |
nothing calls this directly
no test coverage detected