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

Method graphQLSchema

script/ghmock/server.go:81–87  ·  view source on GitHub ↗

graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or it couldn't be loaded.

()

Source from the content-addressed store, hash-verified

79// graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or
80// it couldn't be loaded.
81func (m *mockServer) graphQLSchema() *ast.Schema {
82 if m.checker == nil {
83 return nil
84 }
85 schema, _ := m.checker.graphQL()
86 return schema
87}
88
89// proxyURL is the value gh gets for HTTP_PROXY and HTTPS_PROXY.
90func (m *mockServer) proxyURL() string {

Callers 1

ServeHTTPMethod · 0.95

Calls 1

graphQLMethod · 0.80

Tested by

no test coverage detected