Documentation
¶
Index ¶
- func FindNodeInFile(fset *token.FileSet, astFile *ast.File, nodeID string) (*ast.CompositeLit, error)
- func GetNodeProps(fset *token.FileSet, astFile *ast.File, nodeID string, props []string) (map[string]ast.Node, error)
- func GetNodePropsAsFuncs(fset *token.FileSet, astFile *ast.File, code string, nodeID string, ...) (map[string]string, error)
- func ParseCode(fset *token.FileSet, content string) (*ast.File, error)
- func ParseFile(fset *token.FileSet, file string) (*ast.File, []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNodeInFile ¶
func FindNodeInFile(fset *token.FileSet, astFile *ast.File, nodeID string) (*ast.CompositeLit, error)
FindNodeInFile searches for a node definition in a file
func GetNodeProps ¶
func GetNodeProps(fset *token.FileSet, astFile *ast.File, nodeID string, props []string) (map[string]ast.Node, error)
GetNodeProps handles the request to extract just the Assert function from a test case
func GetNodePropsAsFuncs ¶
func GetNodePropsAsFuncs(fset *token.FileSet, astFile *ast.File, code string, nodeID string, keys []string) (map[string]string, error)
GetNodePropsAsFuncs handles the request to extract just the Assert function from a test case
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.