mocks

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphQLService

type GraphQLService struct {
	mock.Mock
}

GraphQLService is an autogenerated mock type for the GraphQLService type

func NewGraphQLService added in v1.11.21

func NewGraphQLService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GraphQLService

NewGraphQLService creates a new instance of GraphQLService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*GraphQLService) Subscribe

func (_m *GraphQLService) Subscribe(ctx context.Context, document string, operationName string, variableValues map[string]any) (<-chan any, error)

Subscribe provides a mock function with given fields: ctx, document, operationName, variableValues

Jump to

Keyboard shortcuts

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