med_core 0.6.4

A Rust Powered Core Engine for M.E.D. Masking, Encryption, and Decryption CSV/JSON
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use walkdir::WalkDir;

use crate::utils::helpers::is_not_hidden;

#[tokio::test]
async fn test_is_not_hidden() {
    let path = "../demo/data/input/format_err/csv";

    let is_ignored = WalkDir::new(path)
        .follow_links(false)
        .into_iter()
        .filter_entry(is_not_hidden)
        .count();
    assert_eq!(is_ignored, 4);

    let is_not_ignored = WalkDir::new(path).follow_links(false).into_iter().count();
    assert_eq!(is_not_ignored, 5);
}