analysis

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 4 Imported by: 0

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.

type Edge

type Edge struct {
	From string `json:"from"`
	To   string `json:"to"`
	Kind string `json:"kind"`
}

Edge represents a dependency edge in the graph.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL