testgraphql

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordError

func RecordError(o *instanceOption)

Don't fail on error, snapshot it instead.

Types

type ExecutorAndName added in v0.5.1

type ExecutorAndName struct {
	Name     string
	Executor graphql.ExecutorRunner
}

func GetExecutors added in v0.5.1

func GetExecutors() []ExecutorAndName

type ExecutorWrapper added in v0.5.1

type ExecutorWrapper struct {
	// contains filtered or unexported fields
}

func NewExecutorWrapper added in v0.5.1

func NewExecutorWrapper(t *testing.T) *ExecutorWrapper

func NewExecutorWrapperWithoutExactErrorMatch added in v0.5.1

func NewExecutorWrapperWithoutExactErrorMatch(t *testing.T) *ExecutorWrapper

func (*ExecutorWrapper) Execute added in v0.5.1

func (e *ExecutorWrapper) Execute(ctx context.Context, typ graphql.Type, source interface{}, query *graphql.Query) (interface{}, error)

type Option

type Option func(*instanceOption)

type Snapshotter

type Snapshotter struct {
	*snapshotter.Snapshotter
	// contains filtered or unexported fields
}

func NewSnapshotter

func NewSnapshotter(t *testing.T, schema *graphql.Schema) *Snapshotter

func (*Snapshotter) SnapshotQuery

func (s *Snapshotter) SnapshotQuery(name, query string, opts ...Option)

Jump to

Keyboard shortcuts

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