test

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestDebugParse

func TestDebugParse(t *testing.T)

func TestParse

func TestParse[T node.Node](t *testing.T, testcase Case[T], sut func(s *parse.ParseState) (T, error))

func TestPrintTokens

func TestPrintTokens(t *testing.T)

Types

type Case

type Case[T node.Node] struct {
	Message   string
	Input     []tokenize.Token
	WantNode  T
	ShouldErr bool
}

Jump to

Keyboard shortcuts

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