(b *testing.B)
| 600 | } |
| 601 | |
| 602 | func BenchmarkHTTPClient_shouldRetry(b *testing.B) { |
| 603 | client := NewHTTPClient(&http.Client{}, "https://test.example.com", testutils.NewTestLogger()) |
| 604 | err := fmt.Errorf("connection refused") |
| 605 | |
| 606 | b.ResetTimer() |
| 607 | |
| 608 | for i := 0; i < b.N; i++ { |
| 609 | _ = client.shouldRetry(err, 1, 3) |
| 610 | } |
| 611 | } |
nothing calls this directly
no test coverage detected