(t *testing.T)
| 1823 | } |
| 1824 | |
| 1825 | func TestNewFormRequest_emptyBody(t *testing.T) { |
| 1826 | t.Parallel() |
| 1827 | c := mustNewClient(t) |
| 1828 | req, err := c.NewFormRequest(t.Context(), ".", nil) |
| 1829 | if err != nil { |
| 1830 | t.Fatalf("NewFormRequest returned unexpected error: %v", err) |
| 1831 | } |
| 1832 | if req.Body != nil { |
| 1833 | t.Fatal("constructed request contains a non-nil Body") |
| 1834 | } |
| 1835 | } |
| 1836 | |
| 1837 | func TestNewFormRequest_errorForNoTrailingSlash(t *testing.T) { |
| 1838 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…