Skip to main content

resolve_path

Function resolve_path 

Source
pub fn resolve_path(lcov_path: &str, pr_path: &str) -> bool
Expand description

Check whether an LCOV path (often absolute) matches a change request path (relative).

Returns true if lcov_path ends with /<pr_path>, or if they are equal after stripping ./ prefixes.