gqlgen: github.com/99designs/gqlgen/graphql/handler/testserver Index | Files

package testserver

import "github.com/99designs/gqlgen/graphql/handler/testserver"

Index

Package Files

testserver.go

type TestServer Uses

type TestServer struct {
    *handler.Server
    // contains filtered or unexported fields
}

func New Uses

func New() *TestServer

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() *TestServer

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 (*TestServer) SendNextSubscriptionMessage Uses

func (s *TestServer) SendNextSubscriptionMessage()

func (*TestServer) SetCalculatedComplexity Uses

func (s *TestServer) SetCalculatedComplexity(complexity int)

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