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 4262d0cd_6b70_4c6e_23ba_25257f6038e5["test_files_in_root()"] afe7f26f_bfd5_a391_ebb3_6693b99cf8fa["get_gitignore()"] 4262d0cd_6b70_4c6e_23ba_25257f6038e5 -->|calls| afe7f26f_bfd5_a391_ebb3_6693b99cf8fa style 4262d0cd_6b70_4c6e_23ba_25257f6038e5 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.
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