Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // GetActualFuncName returns the name of the gomega function, e.g. `Expect` GetActualFuncName(*ast.CallExpr) (string, bool) // ReplaceFunction replaces the function with another one, for fix suggestions ReplaceFunction(*ast.CallExpr, *ast.Ident) GetActualExpr(assertionFunc *ast.SelectorExpr) *ast.CallExpr // contains filtered or unexported methods }
Handler provide different handling, depend on the way gomega was imported, whether in imported with "." name, custom name or without any name.
func GetGomegaHandler ¶
GetGomegaHandler returns a gomegar handler according to the way gomega was imported in the specific file
Click to show internal directories.
Click to hide internal directories.