(t *testing.T)
| 496 | } |
| 497 | |
| 498 | func TestSetBasicAuth(t *testing.T) { |
| 499 | headers := make(http.Header) |
| 500 | resp, err := tc().R(). |
| 501 | SetBasicAuth("imroc", "123456"). |
| 502 | SetSuccessResult(&headers). |
| 503 | Get("/header") |
| 504 | assertSuccess(t, resp, err) |
| 505 | tests.AssertEqual(t, "Basic aW1yb2M6MTIzNDU2", headers.Get("Authorization")) |
| 506 | } |
| 507 | |
| 508 | func TestSetBearerAuthToken(t *testing.T) { |
| 509 | token := "NGU1ZWYwZDJhNmZhZmJhODhmMjQ3ZDc4" |
nothing calls this directly
no test coverage detected
searching dependent graphs…