type MockResponse struct { Name string `json:"name"` }
func (mr *MockResponse) MarshalGQL(w io.Writer)
func (mr *MockResponse) UnmarshalGQL(v interface{}) error
type TestExecutor struct { *executor.Executor // contains filtered or unexported fields }
func New() *TestExecutor
New provides a server for use in tests that isn't relying on generated code. It isnt a perfect reproduction of a generated server, but it aims to be good enough to test the handler package without relying on codegen.
func NewError() *TestExecutor
NewError provides a server for use in resolver error tests that isn't relying on generated code. It isnt a perfect reproduction of a generated server, but it aims to be good enough to test the handler package without relying on codegen.
func (e *TestExecutor) Schema() graphql.ExecutableSchema
func (e *TestExecutor) SendNextSubscriptionMessage()
func (e *TestExecutor) SetCalculatedComplexity(complexity int)