(b *testing.B)
| 444 | } |
| 445 | |
| 446 | func BenchmarkParallelGithub(b *testing.B) { |
| 447 | DefaultWriter = os.Stdout |
| 448 | router := New() |
| 449 | githubConfigRouter(router) |
| 450 | |
| 451 | req, _ := http.NewRequest(http.MethodPost, "/repos/manucorporat/sse/git/blobs", nil) |
| 452 | |
| 453 | b.RunParallel(func(pb *testing.PB) { |
| 454 | // Each goroutine has its own bytes.Buffer. |
| 455 | for pb.Next() { |
| 456 | w := httptest.NewRecorder() |
| 457 | router.ServeHTTP(w, req) |
| 458 | } |
| 459 | }) |
| 460 | } |
| 461 | |
| 462 | func BenchmarkParallelGithubDefault(b *testing.B) { |
| 463 | DefaultWriter = os.Stdout |
nothing calls this directly
no test coverage detected