package testexecutor
import "github.com/99designs/gqlgen/graphql/executor/testexecutor"
Index ¶
Types ¶
type MockResponse ¶
type MockResponse struct { Name string `json:"name"` }
func (*MockResponse) MarshalGQL ¶
func (mr *MockResponse) MarshalGQL(w io.Writer)
func (*MockResponse) UnmarshalGQL ¶
func (mr *MockResponse) UnmarshalGQL(v any) error
type TestExecutor ¶
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)
Source Files ¶
- Version
- v0.17.73 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 2 days ago –
Tools for package owners.