graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or it couldn't be loaded.
()
| 79 | // graphQLSchema returns GitHub's GraphQL schema, or nil if checks are off or |
| 80 | // it couldn't be loaded. |
| 81 | func (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. |
| 90 | func (m *mockServer) proxyURL() string { |