Skip to main content

references_path

Function references_path 

Source
pub fn references_path(source: &str, changed_path: &str) -> Option<String>
Expand description

Return true when source references changed_path in a way that would plausibly make the test run differently.

We do a literal substring search for the whole path first, then for the basename as a fallback. False positives are expected for very short basenames; callers cap the resulting match at medium so the signal cannot drown out real endpoint matches.