(t *testing.T)
| 1614 | } |
| 1615 | |
| 1616 | func TestNewRequest_badMethod(t *testing.T) { |
| 1617 | t.Parallel() |
| 1618 | c := mustNewClient(t) |
| 1619 | if _, err := c.NewRequest(t.Context(), "BOGUS\nMETHOD", ".", nil); err == nil { |
| 1620 | t.Fatal("NewRequest returned nil; expected error") |
| 1621 | } |
| 1622 | } |
| 1623 | |
| 1624 | // ensure that no User-Agent header is set if the client's UserAgent is empty. |
| 1625 | // This caused a problem with Google's internal http client. |
nothing calls this directly
no test coverage detected
searching dependent graphs…