(t *testing.T, url string, client *http.Client)
| 34 | } |
| 35 | |
| 36 | func newTestHTTPProvider(t *testing.T, url string, client *http.Client) (*httpProvider, *prometheus.Registry) { |
| 37 | reg := prometheus.NewPedanticRegistry() |
| 38 | dur := newHTTPRequestDuration(reg) |
| 39 | return newHTTPProvider(url, client, dur), reg |
| 40 | } |
| 41 | |
| 42 | func TestHTTPProvider_Success(t *testing.T) { |
| 43 | body := "overrides:\n user1:\n limit1: 100\n" |
no test coverage detected