Documentation
¶
Overview ¶
Package testastguard is the shared syntax-census toolkit for structural "X is the only mechanism" test guards: parse a file, find a FuncDecl, and position test call sites against its body span. A new pin is a ~10-line census over these primitives instead of a hand-rolled go/parser walk (twentyfifth-dispatch §e2: extracted from the webui headermatrix and executor redaction guards).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallNames ¶
CallNames returns the callee names of every call inside node: bare idents by name, selector calls by the selected name.
Types ¶
type File ¶
File is a parsed Go source file with its position table.
func (*File) CensusCalls ¶
CensusCalls visits every CallExpr in the file for which match returns true.
Click to show internal directories.
Click to hide internal directories.