pub enum PathDiff {
Failure(Error),
TypeMismatch {
expected_path: PathBuf,
actual_path: PathBuf,
expected_type: FileType,
actual_type: FileType,
},
LinkMismatch {
expected_path: PathBuf,
actual_path: PathBuf,
expected_target: PathBuf,
actual_target: PathBuf,
},
ContentMismatch {
expected_path: PathBuf,
actual_path: PathBuf,
expected_content: Data,
actual_content: Data,
},
}Variants§
Implementations§
source§impl PathDiff
impl PathDiff
sourcepub fn subset_eq_iter(
pattern_root: impl Into<PathBuf>,
actual_root: impl Into<PathBuf>
) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>>
Available on crate feature path only.
pub fn subset_eq_iter( pattern_root: impl Into<PathBuf>, actual_root: impl Into<PathBuf> ) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>>
path only.Report differences between actual_root and pattern_root
Note: Requires feature flag path
sourcepub fn subset_matches_iter(
pattern_root: impl Into<PathBuf>,
actual_root: impl Into<PathBuf>,
substitutions: &Substitutions
) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>> + '_
Available on crate feature path only.
pub fn subset_matches_iter( pattern_root: impl Into<PathBuf>, actual_root: impl Into<PathBuf>, substitutions: &Substitutions ) -> impl Iterator<Item = Result<(PathBuf, PathBuf), Self>> + '_
path only.Report differences between actual_root and pattern_root
Note: Requires feature flag path