testutils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMockGraphQLError

func CreateMockGraphQLError(message string) map[string]interface{}

CreateMockGraphQLError creates a standard GraphQL error response structure

func CreateMockGraphQLResponse

func CreateMockGraphQLResponse(data map[string]interface{}) map[string]interface{}

CreateMockGraphQLResponse creates a standard GraphQL response structure

func MockGraphQLError

func MockGraphQLError(t *testing.T, errorMessage string) (*httptest.Server, func())

MockGraphQLError creates a mock GraphQL error response

func MockGraphQLServer

func MockGraphQLServer(t *testing.T, responses map[string]interface{}) (*httptest.Server, func())

MockGraphQLServer creates a mock GraphQL server for testing

func MockOAuth2Server

func MockOAuth2Server(t *testing.T, tokenResponse map[string]interface{}) (*httptest.Server, func())

MockOAuth2Server creates a mock OAuth2 server for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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