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 717d3895_4238_8051_2a78_e49076719088["test_files_in_root()"] 933eebe1_03e6_d6b1_a9f3_12b5bf3d7e94["gitignore_matched_path_or_any_parents_tests.rs"] 717d3895_4238_8051_2a78_e49076719088 -->|defined in| 933eebe1_03e6_d6b1_a9f3_12b5bf3d7e94 6745b952_42b5_a64f_19de_a5ebc6bb3989["get_gitignore()"] 717d3895_4238_8051_2a78_e49076719088 -->|calls| 6745b952_42b5_a64f_19de_a5ebc6bb3989 style 717d3895_4238_8051_2a78_e49076719088 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
Calls
Source
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