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 591ea607_ae56_71fe_06ab_287f41bf193d["test_files_in_root()"] 94ff899b_35e3_0285_8c8b_3ddbbd041ae9["get_gitignore()"] 591ea607_ae56_71fe_06ab_287f41bf193d -->|calls| 94ff899b_35e3_0285_8c8b_3ddbbd041ae9 style 591ea607_ae56_71fe_06ab_287f41bf193d 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