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