pub fn compute_confidence(
total_defs: usize,
library_exports: usize,
framework_dispatched: usize,
main_entries: usize,
test_entries: usize,
ffi_entries: usize,
) -> DeadCodeConfidenceExpand description
Compute a DeadCodeConfidence level from entry-point kind counts.
Parameters mirror the counts emitted by
crate::entry_points::summarize_entry_point_kinds:
total_defs— total number of definitions in the graph.library_exports— count ofcrate::entry_points::EntryPointKind::LibraryExportentries.framework_dispatched— count ofcrate::entry_points::EntryPointKind::FrameworkDispatchedentries.main_entries— count ofcrate::entry_points::EntryPointKind::Mainentries.test_entries— count ofcrate::entry_points::EntryPointKind::Testentries.ffi_entries— count ofcrate::entry_points::EntryPointKind::Ffientries.
ProcMacro / Init / BuildScript entries are not passed separately; they are rare enough that their absence does not materially affect the heuristic.