Skip to content

Commit 30bdc4a

Browse files
committed
run_make_support: rename assert_recursive_eq to assert_dirs_are_equal
1 parent 57a2f76 commit 30bdc4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tools/run-make-support/src/assertion_helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ pub fn assert_not_contains<H: AsRef<str>, N: AsRef<str>>(haystack: H, needle: N)
4848
}
4949

5050
/// Assert that all files in `dir1` exist and have the same content in `dir2`
51-
pub fn assert_recursive_eq(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) {
51+
pub fn assert_dirs_are_equal(dir1: impl AsRef<Path>, dir2: impl AsRef<Path>) {
5252
let dir2 = dir2.as_ref();
5353
rfs::read_dir_entries(dir1, |entry_path| {
5454
let entry_name = entry_path.file_name().unwrap();
5555
if entry_path.is_dir() {
56-
assert_recursive_eq(&entry_path, &dir2.join(entry_name));
56+
assert_dirs_are_equal(&entry_path, &dir2.join(entry_name));
5757
} else {
5858
let path2 = dir2.join(entry_name);
5959
let file1 = rfs::read(&entry_path);

src/tools/run-make-support/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub use path_helpers::{
7171
pub use scoped_run::{run_in_tmpdir, test_while_readonly};
7272

7373
pub use assertion_helpers::{
74-
assert_contains, assert_equals, assert_not_contains, assert_recursive_eq,
74+
assert_contains, assert_dirs_are_equal, assert_equals, assert_not_contains,
7575
};
7676

7777
pub use string::{

0 commit comments

Comments
 (0)