Documentation ¶
Index ¶
- func ErrorGraphQL(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, query string) []*models.GraphQLError
- func QueryGraphQL(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, operation string, ...) (*models.GraphQLResponse, error)
- func QueryGraphQLOrFatal(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, operation string, ...) *models.GraphQLResponse
- func Vec2String(v []float32) (s string)
- type GraphQLResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorGraphQL ¶
func ErrorGraphQL(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, query string) []*models.GraphQLError
Perform a query and assert that it has errors
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
func QueryGraphQLOrFatal ¶
func QueryGraphQLOrFatal(t *testing.T, auth runtime.ClientAuthInfoWriterFunc, operation string, query string, variables map[string]interface{}) *models.GraphQLResponse
Perform a GraphQL request and call fatal on failure
func Vec2String ¶ added in v1.17.6
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
Click to show internal directories.
Click to hide internal directories.