MCPcopy Create free account
hub / github.com/cli/cli / withProblems

Function withProblems

script/ghmock/log_test.go:328–332  ·  view source on GitHub ↗

withProblems adds schema problems to a GraphQL request for report tests.

(e loggedRequest)

Source from the content-addressed store, hash-verified

326
327// withProblems adds schema problems to a GraphQL request for report tests.
328func withProblems(e loggedRequest) loggedRequest {
329 e.SchemaProblems = []string{"data.viewer.login: missing, but gh asked for it"}
330 e.QueryProblems = []string{`line 2, column 12: Cannot query field "nope" on type "User".`}
331 return e
332}

Callers 2

TestCmdLogFunction · 0.85
TestPrintReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected