Skip to main content

compute_confidence

Function compute_confidence 

Source
pub fn compute_confidence(
    total_defs: usize,
    library_exports: usize,
    framework_dispatched: usize,
    main_entries: usize,
    test_entries: usize,
    ffi_entries: usize,
) -> DeadCodeConfidence
Expand description

Compute a DeadCodeConfidence level from entry-point kind counts.

Parameters mirror the counts emitted by crate::entry_points::summarize_entry_point_kinds:

ProcMacro / Init / BuildScript entries are not passed separately; they are rare enough that their absence does not materially affect the heuristic.