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

Function problemGroups

script/ghmock/report.go:170–179  ·  view source on GitHub ↗
(e loggedRequest)

Source from the content-addressed store, hash-verified

168}
169
170func problemGroups(e loggedRequest) []problemGroup {
171 var groups []problemGroup
172 if len(e.SchemaProblems) > 0 {
173 groups = append(groups, problemGroup{"the response doesn't match GitHub's schema", e.SchemaProblems})
174 }
175 if len(e.QueryProblems) > 0 {
176 groups = append(groups, problemGroup{"gh's query doesn't match GitHub's schema, so GitHub would answer with an error", e.QueryProblems})
177 }
178 return groups
179}
180
181// indentProblems lists problems one per line. With a limit above zero, it
182// shows at most that many and points to the log for the rest.

Callers 2

printLogFunction · 0.85
printProblemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected