lexertest

package
v0.0.0-...-17f8324 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NoErrMsg = ""

Variables

This section is empty.

Functions

func CheckAxisNameToken

func CheckAxisNameToken(t *testing.T, lexer xpath.XpathLexer, axisName string)

func CheckBoolResult

func CheckBoolResult(t *testing.T, mach *xpath.Machine, expResult bool)

func CheckBoolResultWithContext

func CheckBoolResultWithContext(
	t *testing.T,
	mach *xpath.Machine,
	expResult bool,
	configTree *xpathtest.TNode,
	startPath xutils.PathType,
)

func CheckBoolResultWithContextDebug

func CheckBoolResultWithContextDebug(
	t *testing.T,
	mach *xpath.Machine,
	expResult bool,
	configTree *xpathtest.TNode,
	startPath xutils.PathType,
	expOut string,
)

func CheckExecuteError

func CheckExecuteError(t *testing.T, mach *xpath.Machine, expErrMsgs []string)

func CheckFuncToken

func CheckFuncToken(t *testing.T, lexer xpath.XpathLexer, funcName string)

func CheckLiteralResult

func CheckLiteralResult(t *testing.T, mach *xpath.Machine, expResult string)

func CheckLiteralResultWithContext

func CheckLiteralResultWithContext(
	t *testing.T,
	mach *xpath.Machine,
	expResult string,
	configTree *xpathtest.TNode,
	startPath xutils.PathType,
)

func CheckLiteralToken

func CheckLiteralToken(t *testing.T, lexer xpath.XpathLexer, literal string)

func CheckNameTestToken

func CheckNameTestToken(
	t *testing.T,
	lexer xpath.XpathLexer,
	xmlname xml.Name,
)

func CheckNodeSetResult

func CheckNodeSetResult(
	t *testing.T,
	mach *xpath.Machine,
	configTree *xpathtest.TNode,
	absStartPath xutils.PathType,
	expResult xpathtest.TNodeSet,
)

func CheckNodeSetResultWithDebug

func CheckNodeSetResultWithDebug(
	t *testing.T,
	mach *xpath.Machine,
	configTree *xpathtest.TNode,
	absStartPath xutils.PathType,
	expResult xpathtest.TNodeSet,
	expOut string,
)

func CheckNodeTypeToken

func CheckNodeTypeToken(t *testing.T, lexer xpath.XpathLexer, nodeType string)

func CheckNumResult

func CheckNumResult(t *testing.T, mach *xpath.Machine, expResult float64)

func CheckNumResultWithContext

func CheckNumResultWithContext(
	t *testing.T,
	mach *xpath.Machine,
	expResult float64,
	configTree *xpathtest.TNode,
	startPath xutils.PathType,
)

func CheckNumToken

func CheckNumToken(t *testing.T, lexer xpath.XpathLexer, tokenVal float64)

func CheckParseError

func CheckParseError(
	t *testing.T,
	expr string,
	err error,
	expErrMsgs []string,
)

func CheckStringToken

func CheckStringToken(
	t *testing.T,
	lexer xpath.XpathLexer,
	tokenType int,
	name string,
)

func CheckToken

func CheckToken(t *testing.T, lexer xpath.XpathLexer, tokenType int)

Check token types where there is no associated value - eg single character symbols.

func CheckUnlexableToken

func CheckUnlexableToken(
	t *testing.T,
	lexer xpath.XpathLexer,
	expErrMsg string,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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