Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoverageReport ¶
type CoverageReport struct {
UsedFacts []string `json:"used_facts"`
UnknownFacts []string `json:"unknown_facts"`
UnusedFacts []string `json:"unused_facts"`
}
CoverageReport summarizes fact usage coverage.
type DependencyGraph ¶
type DependencyGraph struct {
Rules []string `json:"rules"`
Flows []string `json:"flows"`
Facts []string `json:"facts"`
Verbs []string `json:"verbs"`
Edges []Edge `json:"edges"`
Coverage CoverageReport `json:"coverage"`
}
DependencyGraph captures rules/flows usage of facts and verbs.
func BuildDependencyGraph ¶
func BuildDependencyGraph(file *ast.File, knownFacts map[string]struct{}) DependencyGraph
BuildDependencyGraph builds a dependency graph and coverage report.
Click to show internal directories.
Click to hide internal directories.