testutil

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cupaloy = cupaloy.New(cupaloy.SnapshotSubdirectory("testdata/snapshots"))

Functions

func GetClientFromContext

func GetClientFromContext(ctx context.Context) (graphql.Client, error)

func GetClientFromMyContext

func GetClientFromMyContext(ctx MyContext) (graphql.Client, error)

func GetClientFromNowhere

func GetClientFromNowhere() (graphql.Client, error)

func MarshalDate

func MarshalDate(t *time.Time) ([]byte, error)

func UnmarshalDate

func UnmarshalDate(b []byte, t *time.Time) error

Types

type ID

type ID string

type MyContext

type MyContext interface {
	context.Context

	MyMethod()
}

type Pokemon

type Pokemon struct {
	Species string `json:"species"`
	Level   int    `json:"level"`
}

func (Pokemon) Battle

func (p Pokemon) Battle(q Pokemon) bool

Jump to

Keyboard shortcuts

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