starwars

package
v1.67.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileSimpleHeroQuery            = "testdata/queries/simple_hero.query"
	FileHeroWithOperationNameQuery = "testdata/queries/hero_with_operation_name.query"
	FileHeroWithAliasesQuery       = "testdata/queries/hero_with_aliases.query"
	FileDroidWithArgQuery          = "testdata/queries/droid_with_arg.query"
	FileDroidWithArgAndVarQuery    = "testdata/queries/droid_with_arg_and_var.query"
	FileFragmentsQuery             = "testdata/queries/fragments.query"
	FileDirectivesIncludeQuery     = "testdata/queries/directives_include.query"
	FileDirectivesSkipQuery        = "testdata/queries/directives_skip.query"
	FileCreateReviewMutation       = "testdata/mutations/create_review.mutation"
	FileInlineFragmentsQuery       = "testdata/queries/inline_fragments.query"
	FileUnionQuery                 = "testdata/queries/inline_fragments.query"
	FileRemainingJedisSubscription = "testdata/subscriptions/remaining_jedis.subscription"
	FileIntrospectionQuery         = "testdata/queries/introspection.query"
	FileMultiQueries               = "testdata/queries/multi_queries.query"
	FileMultiQueriesWithArguments  = "testdata/queries/multi_queries_with_arguments.query"
	FileInvalidQuery               = "testdata/queries/invalid.query"
	FileInvalidFragmentsQuery      = "testdata/queries/invalid_fragments.query"
	FileInterfaceFragmentsOnUnion  = "testdata/queries/interface_fragments_on_union.graphql"
)

Variables

This section is empty.

Functions

func InvalidQueryRequestBody

func InvalidQueryRequestBody(t *testing.T) []byte

func LoadQuery

func LoadQuery(t *testing.T, fileName string, variables QueryVariables) []byte

func NewExecutionHandler

func NewExecutionHandler(t *testing.T) *execution.Handler

func RequestBody

func RequestBody(t *testing.T, query string, variables QueryVariables) []byte

func ReviewInput

func ReviewInput() map[string]interface{}

func Schema

func Schema(t *testing.T) []byte

func SetRelativePathToStarWarsPackage

func SetRelativePathToStarWarsPackage(path string)

Types

type QueryVariables

type QueryVariables map[string]interface{}

type TestCase

type TestCase struct {
	Name        string
	RequestBody []byte
}

Jump to

Keyboard shortcuts

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