| Crates.io | dir-assert |
| lib.rs | dir-assert |
| version | 0.2.0 |
| created_at | 2019-12-17 22:48:34.19194+00 |
| updated_at | 2020-02-12 14:41:06.092474+00 |
| description | Assertion to compare directories recursively |
| homepage | https://luke-biel.github.io/dir-assert |
| repository | https://github.com/luke-biel/dir-assert |
| max_upload_size | |
| id | 190129 |
| size | 34,209 |
Compare contents of two directories.
This crate provides macro and function for asserting whether two directories or files are equal.
Example usage:
#[test]
fn test_macro() {
assert_paths!("actual", "expected");
}
#[test]
fn test_fn() {
assert_paths("actual", "expected").unwrap();
}
These functions will panic yielding detailed information about which paths didn't match during comparison. Moreover, line at which each file differs, when other with same name is found also will be reported.
To do before 1.0:
println! or debug! all paths it went throughactual with stringified dir (no expected folder, only &str as input)new_* functionsDebug instead of DisplayDebug and Clone implementations behind featureLicense: MIT