Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2023 Changes in this version + func GetRandValueByType(typeValue string, isStars ...bool) string + func MakeTimeStampMs(t time.Time) int64 + func RandChoice(choices ...string) string + func RandomString(n int, allowedChars ...[]rune) string + func ToStr(i interface{}) string + type CallGraph struct + CallerRelationMap map[string]*CallerRelation + RootFunc *FuncDesc + type CalledRelation struct + Callees []FuncDesc + CanFix bool + type CallerRelation struct + Callees []FuncDesc + Caller FuncDesc + type Expression struct + ExtraPkgPaths []string + IsSignature bool + IsStar bool + IsStruct bool + IsVariadic bool + IsWriter bool + PkgName string + PkgPath string + Underlying string + Value string + func (e *Expression) String() string + func (e *Expression) ToString(rootPath string) string + type Field struct + Fields []*Field + Index int + Name string + Type *Expression + func (f *Field) GetImports(importsMap map[string]string) + func (f *Field) GetRandValue(rootPath string) (res string) + func (f *Field) GetStructFieldRandValue(rootPath string) (res string) + func (f *Field) InitiateReceiver() string + func (f *Field) InitiateReceiverForMock() string + func (f *Field) InitiateStruct() string + func (f *Field) InitiateVariable() string + func (f *Field) IsBasicType() bool + func (f *Field) IsInterface() bool + func (f *Field) IsList() bool + func (f *Field) IsMap() bool + func (f *Field) IsNamed() bool + func (f *Field) IsStar() bool + func (f *Field) IsStruct() bool + func (f *Field) IsWriter() bool + func (f *Field) ShortName() string + func (f *Field) ToString(rootPath string) string + func (f *Field) ToStringForInitialVariable() string + func (f *Field) ToStringForStruct() string + type FuncDesc struct + File string + Name string + Package string + Path string + type Function struct + IsExported bool + Name string + NeedRandCase bool + Parameters []*Field + PkgName string + PkgPath string + Receiver *Field + Results []*Field + ReturnsError bool + RootFunc *Function + func (f *Function) GetImports() []string + func (f *Function) GetReceiverString() string + func (f *Function) GetResult(sb *util.StringBuilder) + func (f *Function) IsNaked() bool + func (f *Function) MethodName() string + func (f *Function) MockFunc() string + func (f *Function) OnlyReturnsError() bool + func (f *Function) OnlyReturnsOneValue() bool + func (f *Function) ReturnsMultiple() bool + func (f *Function) RootPath() string + type Imethod struct + I *types.Interface + Id string + type MWTNode struct + Children []*MWTNode + Key string + N int + Value FuncDesc + type Options struct + GraphLevel int + OnlyFuncs string + type ProjectFunction struct + CalleeFunctionsForTargetFunction map[string]*ssa.Function + Function *ssa.Function + ModuleName string + PackageConstants []types.Object + Program *ProjectProgram + type ProjectProgram struct + AllFuncs map[*ssa.Function]bool + MethodsByName map[string][]*ssa.Function + MethodsMemo map[Imethod][]*ssa.Function + PkgName string + PkgPath string + Pkgs []*ssa.Package + Prog *ssa.Program + func (prog *ProjectProgram) LookupMethods(I *types.Interface, m *types.Func) []*ssa.Function