gqlgen: github.com/99designs/gqlgen/graphql/executor/testexecutor Index | Files

package testexecutor

import "github.com/99designs/gqlgen/graphql/executor/testexecutor"

Index

Package Files

testexecutor.go

type TestExecutor Uses

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

func New Uses

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 Uses

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 Uses

func (e *TestExecutor) Schema() graphql.ExecutableSchema

func (*TestExecutor) SendNextSubscriptionMessage Uses

func (e *TestExecutor) SendNextSubscriptionMessage()

func (*TestExecutor) SetCalculatedComplexity Uses

func (e *TestExecutor) SetCalculatedComplexity(complexity int)

Package testexecutor imports 7 packages (graph). Updated 2020-03-05. Refresh now. Tools for package owners.