(t *testing.T)
| 1593 | } |
| 1594 | |
| 1595 | func TestNewRequest_invalidJSON(t *testing.T) { |
| 1596 | t.Parallel() |
| 1597 | c := mustNewClient(t) |
| 1598 | |
| 1599 | type T struct { |
| 1600 | F func() |
| 1601 | } |
| 1602 | _, err := c.NewRequest(t.Context(), "GET", ".", &T{}) |
| 1603 | |
| 1604 | if err == nil { |
| 1605 | t.Error("Expected error to be returned.") |
| 1606 | } |
| 1607 | } |
| 1608 | |
| 1609 | func TestNewRequest_badURL(t *testing.T) { |
| 1610 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…