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

Function TestNewRequest_invalidJSON

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

Source from the content-addressed store, hash-verified

1593}
1594
1595func 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
1609func TestNewRequest_badURL(t *testing.T) {
1610 t.Parallel()

Callers

nothing calls this directly

Calls 3

mustNewClientFunction · 0.85
NewRequestMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…