gqltest

package
v0.0.0-...-57f3878 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T, opts ...func(*Option)) (api.GQLClient, error)

func WithMutateOK

func WithMutateOK(mutateName string, body string) func(*Option)

func WithQueryOK

func WithQueryOK(queryName string, body string) func(*Option)

Types

type Handler

type Handler struct {
	QueryName  string
	MutateName string

	Handle http.HandlerFunc
}

type Option

type Option struct {
	Handlers []Handler
}

type Transport

type Transport struct {
	Handler http.HandlerFunc
}

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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