tester

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

type Lexer interface {
	Lex() *token.Token
}

type LexerTokenFreeFloatingTestSuite

type LexerTokenFreeFloatingTestSuite struct {
	Code     string
	Expected [][]*token.Token
	// contains filtered or unexported fields
}

func NewLexerTokenFreeFloatingTestSuite

func NewLexerTokenFreeFloatingTestSuite(t *testing.T) *LexerTokenFreeFloatingTestSuite

func (*LexerTokenFreeFloatingTestSuite) Run

type LexerTokenStringTestSuite

type LexerTokenStringTestSuite struct {
	Code     string
	Expected []string
	// contains filtered or unexported fields
}

func NewLexerTokenStringTestSuite

func NewLexerTokenStringTestSuite(t *testing.T) *LexerTokenStringTestSuite

func (*LexerTokenStringTestSuite) Run

func (l *LexerTokenStringTestSuite) Run()

type LexerTokenStructTestSuite

type LexerTokenStructTestSuite struct {
	Code     string
	Expected []*token.Token
	// contains filtered or unexported fields
}

func NewLexerTokenStructTestSuite

func NewLexerTokenStructTestSuite(t *testing.T) *LexerTokenStructTestSuite

func (*LexerTokenStructTestSuite) Run

func (l *LexerTokenStructTestSuite) Run()

func (*LexerTokenStructTestSuite) WithFreeFloating

func (l *LexerTokenStructTestSuite) WithFreeFloating()

func (*LexerTokenStructTestSuite) WithPos

func (l *LexerTokenStructTestSuite) WithPos()

type ParserErrorTestSuite

type ParserErrorTestSuite struct {
	Code     string
	Expected []*errors.Error
	// contains filtered or unexported fields
}

func NewParserErrorTestSuite

func NewParserErrorTestSuite(t *testing.T) *ParserErrorTestSuite

func (*ParserErrorTestSuite) Run

func (p *ParserErrorTestSuite) Run()

type ParserPrintTestSuite

type ParserPrintTestSuite struct {
	// contains filtered or unexported fields
}

type ParserTestSuite

type ParserTestSuite struct {
	Code     string
	Expected ast.Node
	// contains filtered or unexported fields
}

func NewParserTestSuite

func NewParserTestSuite(t *testing.T) *ParserTestSuite

func (*ParserTestSuite) Run

func (p *ParserTestSuite) Run()

Jump to

Keyboard shortcuts

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