You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[tokio::test]asyncfnonly_one_empty_dir(){let temp_dir1 = Temp::new_dir().expect("Failed to create temp dir 1");let temp_dir2 = Temp::new_dir().expect("Failed to create temp dir 2");let temp_file1 = temp_dir1.join("file1");
fs::write(temp_file1,"").await.expect("Failed to write to temp file 1");assert!(
dir_diff::is_different(temp_dir1, temp_dir2).expect("Failed to compare dirs"),"One dir has empty file and other not");}
Test dependencies:
tokio with fs & macro features (for file creation asynchronously & async test run) - std::fs may be used for this
mktemp for temp dirs creation
The text was updated successfully, but these errors were encountered:
Code:
Test dependencies:
tokio
withfs
¯o
features (for file creation asynchronously & async test run) -std::fs
may be used for thismktemp
for temp dirs creationThe text was updated successfully, but these errors were encountered: