Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceSpecification ¶
type InterfaceSpecification struct { InterfaceName string InterfaceParams []InterfaceSpecificationParam }
InterfaceSpecification represents abstraction over interface type. It contains all the metadata required to render a mock for given interface. One could deduce whether interface is generic by looking for type params
func FindAllInterfaces ¶
func FindAllInterfaces(p *ast.Package, pattern string) []InterfaceSpecification
type InterfaceSpecificationParam ¶
InterfaceSpecificationParam represents a group of type param variables and their type I.e. [T,K any] would result in names "T","K" and type "any"
Click to show internal directories.
Click to hide internal directories.