Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DependencyAnalysis ¶
func DependencyAnalysis(state *loadprogram.State, dc DependencyConfigs) reachability.DependencyGraph
DependencyAnalysis runs the dependency analysis on all the functions in the ssa.Program Writes a coverage file in covFile indicating which functions are reachable.
Types ¶
type DependencyConfigs ¶
type DependencyConfigs struct {
// JsonFlag indicates whether the output should be Json-formatted (TODO).
JsonFlag bool
// IncludeStdlib indicates whether the standard library should be included in the analysis.
IncludeStdlib bool
// CoverageFile is a writer that will contain the coverage data if non-nil.
CoverageFile io.Writer
// CsvFile is a writer that will contain the list of dependency usage if non-nil.
CsvFile io.Writer
// UsageThreshold is a dependency usage percentage threshold below which a warning is produced.
UsageThreshold float64
// LocThreshold is an absolute dependency usage threshold below which a warning is produced
LocThreshold int
// ComputeGraph indicates whether the dependency graph should be computed.
ComputeGraph bool
}
DependencyConfigs contains output settings for the dependency analysis.
Click to show internal directories.
Click to hide internal directories.