Are the contents of two directories different?
Mostly useful for integration-style tests when you want to check some generated output.
Using dir-diff
in an integration test with [tempdir
]:
```rust,ignore extern crate dir_diff; extern crate tempdir;
fn smoketest() { let tmpdir = TempDir::new("foo").expect("create temp dir failed");
generate_some_stuff(&tmp_dir);
assert!(!dir_diff::is_different(&tmp_dir.path(), "path/to/fixture").unwrap());
} ```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.