testutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Testcase

type Testcase struct {
	// use either Expression or AST
	Expression string
	AST        ast.Expression

	Context   context.Context
	Document  any
	Variables types.Variables
	Functions types.Functions
	Coalescer coalescing.Coalescer
	Runtime   types.Runtime

	Expected          any
	ExpectedDocument  any
	ExpectedVariables types.Variables

	Invalid bool
}

func (*Testcase) Run

func (tc *Testcase) Run(t *testing.T)

func (*Testcase) String

func (tc *Testcase) String() string

Jump to

Keyboard shortcuts

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