(t *testing.T)
| 1810 | } |
| 1811 | |
| 1812 | func TestNewFormRequest_emptyUserAgent(t *testing.T) { |
| 1813 | t.Parallel() |
| 1814 | c := mustNewClient(t) |
| 1815 | c.userAgent = "" |
| 1816 | req, err := c.NewFormRequest(t.Context(), ".", nil) |
| 1817 | if err != nil { |
| 1818 | t.Fatalf("NewFormRequest returned unexpected error: %v", err) |
| 1819 | } |
| 1820 | if _, ok := req.Header["User-Agent"]; ok { |
| 1821 | t.Fatal("constructed request contains unexpected User-Agent header") |
| 1822 | } |
| 1823 | } |
| 1824 | |
| 1825 | func TestNewFormRequest_emptyBody(t *testing.T) { |
| 1826 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…