test

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecDirMD2

func ExecDirMD2(
	t *testing.T,
	filesystem fs.FS,
	dirName string,
	expectationPrefix string,
	fn func(t *testing.T, input, expectation string),
)

ExecDirMD2 applies fn to each .md file in dirName recursively. Expects the markdown file to contain two code blocks, one for the input and another one for the expected output.

func ExecDirMD3

func ExecDirMD3(
	t *testing.T,
	filesystem fs.FS,
	dirName string,
	expectationPrefix string,
	fn func(t *testing.T, schema, input, expectation string),
)

ExecDirMD3 applies fn to each .md file in dirName recursively. Expects the markdown file to contain three code blocks, one for the GraphQL schema, another one for the template and another one for the expected output.

func New

func New[T any](t *testing.T, fn func(t *testing.T, x T)) func(T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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