Function run_function_coupling
pub fn run_function_coupling<R: Repo>(
db: &FactsDb,
repo: &R,
opts: &Options,
target: &str,
) -> Result<Vec<FunctionCouplingRow>>Expand description
Run the function-coupling analysis.
target is a repo-relative path (e.g. src/foo.rs). Returns pairs of
HEAD-alive functions that co-changed in ≥ 2 revisions, sorted by
p_value ASC then confidence DESC. Pairs where Fisher returns None
(degenerate marginal — zero row or column sum, implying p → 0) sort
first as the strongest coupling signal.
§Errors
Returns crate::CodeLoreError::Analysis on database errors or if the
target file is not a supported Tier-1 language.