Versions in this module Expand all Collapse all v2022 v2022.11.9 Nov 9, 2022 Changes in this version + func ToJson(query GraphqlQuery) string v2022.8.28 Aug 28, 2022 Changes in this version + var Mux *http.ServeMux + var Server *httptest.Server + var Templater *FixtureTemplater + func Assert(tb testing.TB, condition bool, msg string, v ...interface{}) + func Equals(tb testing.TB, exp, act interface{}) + func Fixture(path string) string + func NewHttpClient(fn RoundTripFunc) *http.Client + func Ok(tb testing.TB, err error) + func RegisterEndpoint(endpoint string, responseWriter ResponseWriter, ...) string + func Setup() func() + func TemplatedFixture(fixture string) string + type FixtureTemplater struct + func NewFixtureTemplater(templateDirs ...string) *FixtureTemplater + func (t *FixtureTemplater) Use(contents string) (string, error) + func (t *FixtureTemplater) UseFile(path string) (string, error) + func (t *FixtureTemplater) UseKey(key string) (string, error) + type GraphqlQuery struct + Query string + Variables map[string]interface{} + func GraphQLQueryFixture(fixture string) GraphqlQuery + func Parse(r *http.Request) GraphqlQuery + type RequestValidation func(*http.Request) + func GraphQLQueryFixtureValidation(t *testing.T, fixture string) RequestValidation + func GraphQLQueryValidation(t *testing.T, exp string) RequestValidation + func SkipRequestValidation() RequestValidation + type ResponseWriter func(http.ResponseWriter) + func EmptyResponse() ResponseWriter + func FixtureResponse(fixture string) ResponseWriter + type RoundTripFunc func(req *http.Request) *http.Response + func (f RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) Other modules containing this package github.com/rocktavious/autopilot github.com/rocktavious/autopilot/v2023