Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectCyclicDependency ¶
Types ¶
type CyclicDependencyError ¶
type CyclicDependencyError struct {
// contains filtered or unexported fields
}
func (*CyclicDependencyError) Error ¶
func (e *CyclicDependencyError) Error() string
type FuncType ¶
type FuncType struct { ArgumentTypes []ParameterType ReturnTypes []ParameterType PackageName string Comments comments Name string }
type Generator ¶
type Generator struct { PackageName string // contains filtered or unexported fields }
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) GenerateMock ¶
func (g *Generator) GenerateMock(it *InterfaceType, targets []InterfaceType) error
type InterfaceType ¶
type PackageParser ¶
type PackageParser struct {
PackageName string
}
func NewPackageParser ¶
func NewPackageParser(pack string) *PackageParser
func (*PackageParser) FindConstructors ¶
func (p *PackageParser) FindConstructors(filenames []string, funcnames []string) ([]FuncType, error)
func (*PackageParser) FindDependencyInterfaces ¶
func (p *PackageParser) FindDependencyInterfaces(filenames []string, targetNames []string) ([]InterfaceType, error)
func (*PackageParser) FindDicon ¶
func (p *PackageParser) FindDicon(filenames []string) (*InterfaceType, error)
type ParameterType ¶
type ParameterType struct { DeclaredPackageName string // contains filtered or unexported fields }
func NewParameterType ¶
func NewParameterType(packageName string, expr ast.Expr) *ParameterType
func (*ParameterType) ConvertName ¶
func (p *ParameterType) ConvertName(packageName string) string
func (*ParameterType) SimpleName ¶
func (p *ParameterType) SimpleName() string
Click to show internal directories.
Click to hide internal directories.