Documentation
¶
Overview ¶
Package discover implements trimming of ASTs based on test coverage, to aid in conceptualizing large code bases.
It is based on the idea presented by Alan Shreve in his talk on conceptualizing large software systems, held at dotGo 2015 in Paris.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
Stmts map[ast.Stmt]bool
Funcs map[*ast.FuncDecl]bool
ImportPaths map[*ast.File]string
Files []*ast.File
Fset *token.FileSet
}
Profile contains a map of statements and funcs that were covered by the cover profiles. It supports using the information to trim an AST down to the nodes that were actually reached.
func ParseProfile ¶
ParseProfile parses a set of coverage profiles to produce a *Profile.
Click to show internal directories.
Click to hide internal directories.