Module coverage2

Module coverage2 

Source

Functionsยง

coverage_check
Return Ok(()) if replacement covers all distro commands; Err(missing) otherwise.
coverage_preflight
Preflight coverage for replace: require that the replacement supports all distro-provided commands for the given package; returns Err(missing) if not.
discover_applets_with_allow
Interrogate the replacement binary and return the set of applets it claims to support, intersected with the provided allow list. Falls back to allow if probing fails or finds an obviously tiny set (< 3).
intersect_distro_with_replacement
Intersect distro-provided commands with replacement-supported applets.
resolve_applets_for_use
Resolve the set of applets to link during use for a given package, by interrogating the replacement binary, intersecting with distro-provided commands when available, and falling back to the static list if needed.