Documentation
¶
Index ¶
- func EqualExpr(t *testing.T, expected, actual node.Expr)
- func EqualExprs(t *testing.T, expected, actual []node.Expr)
- func EqualFuncType(t *testing.T, expected, actual *node.FuncType)
- func EqualIdents(t *testing.T, expected, actual []*node.Ident)
- func EqualMapElements(t *testing.T, expected, actual []*node.DictElementLit)
- func EqualNamedArgs(t *testing.T, expected, actual *node.NamedArgsList)
- func EqualNamedArgsNames(t *testing.T, expected, actual []node.NamedArgExpr)
- func EqualStmt(t *testing.T, expected, actual node.Stmt)
- func EqualStmts(t *testing.T, expected, actual []node.Stmt)
- func EqualTypedIdents(t *testing.T, expected, actual []*node.TypedIdent)
- func ExpectParse(t *testing.T, input string, fn ExpectedFn, opt ...Option)
- func ExpectParseError(t *testing.T, input string, opt ...Option)
- func ExpectParseString(t *testing.T, input, expected string, opt ...Option)
- func Parse(t *testing.T, input string, ...)
- func ParseTrace(t *testing.T, input, expected string)
- type ExpectedFn
- type Option
- type Pfn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualMapElements ¶
func EqualMapElements( t *testing.T, expected, actual []*node.DictElementLit, )
func EqualNamedArgs ¶
func EqualNamedArgs(t *testing.T, expected, actual *node.NamedArgsList)
func EqualNamedArgsNames ¶
func EqualNamedArgsNames(t *testing.T, expected, actual []node.NamedArgExpr)
func EqualTypedIdents ¶
func EqualTypedIdents(t *testing.T, expected, actual []*node.TypedIdent)
func ExpectParse ¶
func ExpectParse(t *testing.T, input string, fn ExpectedFn, opt ...Option)
func ExpectParseString ¶
func ParseTrace ¶
Types ¶
type ExpectedFn ¶
type Option ¶
type Option func(po *parser.ParserOptions, so *parser.ScannerOptions)
Click to show internal directories.
Click to hide internal directories.