Versions in this module Expand all Collapse all v0 v0.1.0 Mar 15, 2021 Changes in this version + func CreateHeader() http.Header + func NewMockGQLError(t *testing.T, expectedHeader http.Header) *httptest.Server + func NewMockGQLOutput(t *testing.T, expectedHeader http.Header, output interface{}) *httptest.Server + func NewMockGQLServer(t *testing.T, expectedHeader http.Header, responseStatus int, response []byte) *httptest.Server + func NewMockServer(t *testing.T, expectedHeader http.Header, expectedMethod string, ...) *httptest.Server + func ToGenericMap(i interface{}) map[string]interface + type MockGraphQLHandler struct + Errors []graphql.Error + ExpectedHeaders http.Header + ExpectedVariables map[string]interface{} + Response interface{} + ResponseStatus int + func NewMockGraphQLHandler(t *testing.T) *MockGraphQLHandler + func (g *MockGraphQLHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (g *MockGraphQLHandler) WithErrors(errors []graphql.Error, cb func())