Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reaname init_tmp_directory to create_temp_files_in_directory
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <tareknaser360@gmail.com>
tareknaser committed Feb 10, 2024
1 parent 9583f2a commit 51a6e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.rs
Original file line number Diff line number Diff line change
@@ -1187,7 +1187,7 @@ mod tests {
return rand_num;
}

fn init_tmp_directory(root_path: PathBuf) {
fn create_temp_files_in_directory(root_path: PathBuf) {
for i in 0..FILE_COUNT {
let data_size: u64 = (i + 10).try_into().unwrap();
let mut create_file_name = String::from(FILE_NAME);
@@ -1205,7 +1205,7 @@ mod tests {
fn update_all_compare_track_one_methods() {
run_test_and_clean_up(|path| {
// Initial folders and files are created in this function.
init_tmp_directory(path.clone());
create_temp_files_in_directory(path.clone());
let initial_index = ResourceIndex::build(path.clone());
let mut index1 = initial_index.clone();
let mut index2 = initial_index.clone();

0 comments on commit 51a6e10

Please sign in to comment.