Back to godoc.org

Package testexecutor

v0.13.0
Latest Go to latest

The latest major version is .

Published: Sep 21, 2020 | License: MIT | Module: github.com/99designs/gqlgen

Index

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 (e *TestExecutor) Schema() graphql.ExecutableSchema

func (*TestExecutor) SendNextSubscriptionMessage

func (e *TestExecutor) SendNextSubscriptionMessage()

func (*TestExecutor) SetCalculatedComplexity

func (e *TestExecutor) SetCalculatedComplexity(complexity int)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier