Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTemplate ¶
GenerateTemplate compiles the template and generates a mock
Types ¶
type Method ¶
type Method struct { NamedParams []NamedParam NamedReturns []NamedParam UnNamedParams []string UnNamedReturns []string HasReturns bool }
Method describes a method's parameters and return values
type Mock ¶
Mock describes an interface and its methods which will be used to generate a mock structure
type NamedParam ¶
NamedParam describes a parameter or return value's variable name and type definition as a string
Click to show internal directories.
Click to hide internal directories.