skyspell_core 4.0.0

skyspell core library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::path::PathBuf;

use super::*;

#[test]
fn test_skipping_file_in_subdir() {
    let this_dir = PathBuf::from(".");
    let gitignore = GitignoreBuilder::new(this_dir)
        .add_line(None, "foo/")
        .unwrap()
        .build()
        .unwrap();
    let actual = gitignore.matched_path_or_any_parents("foo/bar", false);
    assert!(actual.is_ignore());
}