testexecutor

package
v0.99.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockResponse

type MockResponse struct {
	Name string `json:"name"`
}

func (*MockResponse) MarshalGQL

func (mr *MockResponse) MarshalGQL(w io.Writer)

func (*MockResponse) UnmarshalGQL

func (mr *MockResponse) UnmarshalGQL(v interface{}) error

type TestExecutor

type TestExecutor struct {
	*executor.Executor
	// contains filtered or unexported fields
}

func New

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

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 (*TestExecutor) Schema

func (*TestExecutor) SendNextSubscriptionMessage

func (e *TestExecutor) SendNextSubscriptionMessage()

func (*TestExecutor) SetCalculatedComplexity

func (e *TestExecutor) SetCalculatedComplexity(complexity int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL