MCPcopy Index your code
hub / github.com/google/go-github / TestNewFormRequest_emptyBody

Function TestNewFormRequest_emptyBody

github/github_test.go:1825–1835  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1823}
1824
1825func 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
1837func TestNewFormRequest_errorForNoTrailingSlash(t *testing.T) {
1838 t.Parallel()

Callers

nothing calls this directly

Calls 2

mustNewClientFunction · 0.85
NewFormRequestMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…