Home / Function/ test_files_in_root() — tailwindcss Function Reference

test_files_in_root() — tailwindcss Function Reference

Architecture documentation for the test_files_in_root() function in gitignore_matched_path_or_any_parents_tests.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  a5d02d96_3e67_340a_9ce9_5019074440b1["test_files_in_root()"]
  769ca6bf_ad87_5317_8f93_e86c99cb744d["gitignore_matched_path_or_any_parents_tests.rs"]
  a5d02d96_3e67_340a_9ce9_5019074440b1 -->|defined in| 769ca6bf_ad87_5317_8f93_e86c99cb744d
  1f69106b_6e6c_e227_3c52_709d51049c50["get_gitignore()"]
  a5d02d96_3e67_340a_9ce9_5019074440b1 -->|calls| 1f69106b_6e6c_e227_3c52_709d51049c50
  style a5d02d96_3e67_340a_9ce9_5019074440b1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs lines 24–51

fn test_files_in_root() {
    let gitignore = get_gitignore();
    let m = |path: &str| gitignore.matched_path_or_any_parents(Path::new(path), false);

    // 0x
    assert!(m("ROOT/file_root_00").is_ignore());
    assert!(m("ROOT/file_root_01").is_none());
    assert!(m("ROOT/file_root_02").is_none());
    assert!(m("ROOT/file_root_03").is_none());

    // 1x
    assert!(m("ROOT/file_root_10").is_ignore());
    assert!(m("ROOT/file_root_11").is_none());
    assert!(m("ROOT/file_root_12").is_none());
    assert!(m("ROOT/file_root_13").is_none());

    // 2x
    assert!(m("ROOT/file_root_20").is_none());
    assert!(m("ROOT/file_root_21").is_none());
    assert!(m("ROOT/file_root_22").is_none());
    assert!(m("ROOT/file_root_23").is_none());

    // 3x
    assert!(m("ROOT/file_root_30").is_ignore());
    assert!(m("ROOT/file_root_31").is_none());
    assert!(m("ROOT/file_root_32").is_none());
    assert!(m("ROOT/file_root_33").is_none());
}

Domain

Subdomains

Frequently Asked Questions

What does test_files_in_root() do?
test_files_in_root() is a function in the tailwindcss codebase, defined in crates/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs.
Where is test_files_in_root() defined?
test_files_in_root() is defined in crates/ignore/tests/gitignore_matched_path_or_any_parents_tests.rs at line 24.
What does test_files_in_root() call?
test_files_in_root() calls 1 function(s): get_gitignore.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free