Test function under NewRequest failure and then s.client.Do failure. Method f should be a regular call that would normally succeed, but should return an error when NewRequest or s.client.Do fails.
(t *testing.T, methodName string, client *Client, f func() (*Response, error))
| 362 | // Method f should be a regular call that would normally succeed, but |
| 363 | // should return an error when NewRequest or s.client.Do fails. |
| 364 | func testNewRequestAndDoFailure(t *testing.T, methodName string, client *Client, f func() (*Response, error)) { |
| 365 | testNewRequestAndDoFailureCategory(t, methodName, client, CoreCategory, f) |
| 366 | } |
| 367 | |
| 368 | // testNewRequestAndDoFailureCategory works Like testNewRequestAndDoFailure, but allows setting the category. |
| 369 | func testNewRequestAndDoFailureCategory(t *testing.T, methodName string, client *Client, category RateLimitCategory, f func() (*Response, error)) { |
no test coverage detected
searching dependent graphs…