Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2023 Changes in this version + func AddedImportToTrc(w io.Writer, filepath string, srcImports, tarImports []*Import) (map[string]struct{}, error) + func Concatenate(src, trc string, tarImports []*Import) error + func GetAllFunctionInFile(options atgconstant.Options) ([]string, error) + func GetOriginExprV2(c *CoverFile, node ast.Node) []byte + func ModifySrcBasedTarget(w io.Writer, filepath string, targetFunction map[string]struct{}) error + func NewFunctionBuilder(ctx context.Context) *functionBuilder + func NewInstrumentation(file string, funcName, id string) ([]byte, int, error) + type Branch struct + type CoverFile struct + Pkg string + RepeatedName bool + Uid string + func (c *CoverFile) Rename() + func (c *CoverFile) Visit(node ast.Node) ast.Visitor + type File struct + type Func struct + Name string + type Import struct + Name string + Path string + func GetImportsInfosFromFile(filepath string) ([]*Import, error) + type SrcFileModify struct + TargetFunctions map[string]struct{} + func (f *SrcFileModify) Visit(node ast.Node) ast.Visitor + type SrcFileRecord struct + func (f *SrcFileRecord) Visit(node ast.Node) ast.Visitor + type TestedFunctionInfo struct + FunctionNames []string + PredicatesPos []int + type TrcFile struct + FunctionNames map[string]struct{} + TrcImports []*Import + func (f *TrcFile) Visit(node ast.Node) ast.Visitor