package testserver
import "github.com/99designs/gqlgen/graphql/handler/testserver"
Index ¶
Types ¶
type TestServer ¶
func New ¶
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 ¶
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) SendCompleteSubscriptionMessage ¶
func (s *TestServer) SendCompleteSubscriptionMessage()
func (*TestServer) SendNextSubscriptionMessage ¶
func (s *TestServer) SendNextSubscriptionMessage()
func (*TestServer) SetCalculatedComplexity ¶
func (s *TestServer) SetCalculatedComplexity(complexity int)
Source Files ¶
- Version
- v0.17.73 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 21 hours ago –
Tools for package owners.