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

Method check

script/ghmock/server.go:68–77  ·  view source on GitHub ↗

check records what the schema check found for a request and its response.

(entry *loggedRequest, resp *response)

Source from the content-addressed store, hash-verified

66
67// check records what the schema check found for a request and its response.
68func (m *mockServer) check(entry *loggedRequest, resp *response) {
69 if m.checker == nil {
70 return
71 }
72 res := m.checker.checkRequest(*entry, resp)
73 entry.QueryProblems = res.queryProblems
74 entry.SchemaProblems = res.responseProblems
75 entry.SchemaNote = res.note
76 entry.OffSchema = resp != nil && resp.OffSchema
77}
78
79// graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or
80// it couldn't be loaded.

Callers 1

ServeHTTPMethod · 0.95

Calls 1

checkRequestMethod · 0.80

Tested by

no test coverage detected