Documentation ¶
Index ¶
- func FormatError(err error) string
- func MustParse(options ...func(*ParserOptions)) *ast.File
- func MustParseExpr(options ...func(*ParserOptions)) ast.Expr
- func MustParseTypeExpr(options ...func(*ParserOptions)) ast.TypeExpr
- func NewParser(options ...func(*ParserOptions)) *parser.Parser
- func Parse(options ...func(*ParserOptions)) (*ast.File, error)
- func ParseExpr(options ...func(*ParserOptions)) (ast.Expr, error)
- func ParseTypeExpr(options ...func(*ParserOptions)) (ast.TypeExpr, error)
- func Run(t *testing.T, cases []Runner)
- func RunWith[D any](t *testing.T, cases []Injector[D], dep D)
- func WithFile(file *parser.File) func(*ParserOptions)
- func WithName(name string) func(*ParserOptions)
- func WithSourceBytes(source []byte) func(*ParserOptions)
- func WithSourceString(source string) func(*ParserOptions)
- type Injector
- type ParserOptions
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatError ¶
func MustParse ¶
func MustParse(options ...func(*ParserOptions)) *ast.File
func MustParseExpr ¶
func MustParseExpr(options ...func(*ParserOptions)) ast.Expr
func MustParseTypeExpr ¶
func MustParseTypeExpr(options ...func(*ParserOptions)) ast.TypeExpr
func NewParser ¶
func NewParser(options ...func(*ParserOptions)) *parser.Parser
func ParseTypeExpr ¶
func ParseTypeExpr(options ...func(*ParserOptions)) (ast.TypeExpr, error)
func WithFile ¶
func WithFile(file *parser.File) func(*ParserOptions)
func WithName ¶
func WithName(name string) func(*ParserOptions)
func WithSourceBytes ¶
func WithSourceBytes(source []byte) func(*ParserOptions)
func WithSourceString ¶
func WithSourceString(source string) func(*ParserOptions)
Types ¶
type ParserOptions ¶
type Runner ¶
type Runner interface {
Run(*assert.Assertions)
}
Click to show internal directories.
Click to hide internal directories.