pub fn rel_path(&self, full_path: impl AsRef<Path>) -> Option<String> {
        match PathBuf::from(full_path.as_ref()).strip_prefix(&self.current_dir) {
            Err(_) => None,
            Ok(rel_path) => rel_path.to_str().map(|rp| rp.to_string()),
        }
    }
/// Convert a full path to the path relative to the test root
/// Returns None if the full path doesn't contain test root as prefix
Convert a full path to the path relative to the test root
Returns None if the full path doesn't contain test root as prefix
Convert a full path to the path relative to the test root Returns None if the full path doesn ' t contain test root as prefix
pub fn rel_path(&self, full_path: impl AsRef<Path>) -> Option<String> {
        match PathBuf::from(full_path.as_ref()).strip_prefix(&self.current_dir) {
            Err(_) => None,
            Ok(rel_path) => rel_path.to_str().map(|rp| rp.to_string()),
        }
    }
pub fn rel_path ( & self , full_path : impl AsRef < Path > ) -> Option < String > { match PathBuf :: from ( full_path . as_ref ( ) ) . strip_prefix ( & self . current_dir ) { Err ( _ ) => None , Ok ( rel_path ) => rel_path . to_str ( ) . map ( | rp | rp . to_string ( ) ) , } }
Convert a full path to the path relative to the test root
Returns None if the full path doesn't contain test root as prefix
Convert a full path to the path relative to the test root Returns None if the full path doesn ' t contain test root as prefix
&self
full_path
impl AsRef<Path>