Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment added in v0.0.6

type Environment struct {
	Hitrix           *hitrix.Hitrix
	GinEngine        *gin.Engine
	Cxt              *gin.Context
	ResponseRecorder *httptest.ResponseRecorder
	// contains filtered or unexported fields
}

func CreateContext

func CreateContext(t *testing.T, projectName string, resolvers graphql.ExecutableSchema, ginInitHandler hitrix.GinInitHandler, defaultServices []*service.Definition, mockServices ...*service.Definition) *Environment

func (*Environment) HandleMutation added in v0.0.6

func (env *Environment) HandleMutation(mutation interface{}, variables map[string]interface{}) *graphqlParser.Errors

func (*Environment) HandleQuery added in v0.0.6

func (env *Environment) HandleQuery(query interface{}, variables map[string]interface{}) *graphqlParser.Errors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL