type TestServer struct { *handler.Server // contains filtered or unexported fields }
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() *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 (s *TestServer) SendCompleteSubscriptionMessage()
func (s *TestServer) SendNextSubscriptionMessage()
func (s *TestServer) SetCalculatedComplexity(complexity int)