test

package
v1.19.11 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryGraphQL

func QueryGraphQL(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, operation string, query string, variables map[string]interface{}) (*models.GraphQLResponse, error)

Perform a GraphQL request

Types

type GraphQLResult

type GraphQLResult struct {
	Result interface{}
}

func AssertGraphQL

func AssertGraphQL(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, query string) *GraphQLResult

Perform a query and assert that it is successful

func (*GraphQLResult) AsSlice

func (g *GraphQLResult) AsSlice() []interface{}

Cast the result to a slice

func (GraphQLResult) Get

func (g GraphQLResult) Get(paths ...string) *GraphQLResult

Drill down in the result

Jump to

Keyboard shortcuts

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