(t *testing.T)
| 270 | } |
| 271 | |
| 272 | func TestNewHTTPClientRejectsConfigAndRefreshingConfig(t *testing.T) { |
| 273 | // Config and RefreshingConfig are mutually exclusive, so supplying both is a programming error that must be |
| 274 | // reported rather than silently picking one. |
| 275 | _, err := NewHTTPClient(HTTPClientOptions{ |
| 276 | Config: legacyConfig{}, |
| 277 | RefreshingConfig: tinyConfig{}, |
| 278 | }) |
| 279 | require.EqualError(t, err, "provide either Config or RefreshingConfig, not both") |
| 280 | } |
| 281 | |
| 282 | func TestAddAuthTokenHeaderLegacyConfig(t *testing.T) { |
| 283 | // Regression: the primitive config seam that external callers implement must keep attaching tokens, including the |
nothing calls this directly
no test coverage detected