testutils

package
v0.0.0-...-4efd307 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGraphQLErrorCodeField

func AssertGraphQLErrorCodeField(t *testing.T, err error, expectedCode model.ErrorCode)

AssertGraphQLErrorCodeField checks if any GraphQL error in the response contains an extensions.code field with the expected code. It specifically targets errors structured by gqlgenc's clientv2.

func GetCodeFromExtensions

func GetCodeFromExtensions(extensions map[string]interface{}) (model.ErrorCode, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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