test_slim_syntax() — tailwindcss Function Reference
Architecture documentation for the test_slim_syntax() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 242911f5_162b_6ddb_78b6_806b29091b62["test_slim_syntax()"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7["mod.rs"] 242911f5_162b_6ddb_78b6_806b29091b62 -->|defined in| 0fcd0fda_f6d1_052f_9575_133f5b2763a7 0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9["assert_extract_sorted_candidates()"] 242911f5_162b_6ddb_78b6_806b29091b62 -->|calls| 0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9 cfc07640_f3ad_1fd8_e118_770b90d7badd["pre_process_input()"] 242911f5_162b_6ddb_78b6_806b29091b62 -->|calls| cfc07640_f3ad_1fd8_e118_770b90d7badd style 242911f5_162b_6ddb_78b6_806b29091b62 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 653–669
fn test_slim_syntax() {
for (input, expected) in [
// Class literal
(
".bg-blue-100.2xl:bg-red-100",
vec!["bg-blue-100", "2xl:bg-red-100"],
),
(
".2xl:bg-red-100.bg-blue-100",
vec!["bg-blue-100", "2xl:bg-red-100"],
),
// Quoted attribute
(r#"div class="px-2.5""#, vec!["div", "class", "px-2.5"]),
] {
assert_extract_sorted_candidates(&pre_process_input(input, "slim"), expected);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_slim_syntax() do?
test_slim_syntax() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is test_slim_syntax() defined?
test_slim_syntax() is defined in crates/oxide/src/extractor/mod.rs at line 653.
What does test_slim_syntax() call?
test_slim_syntax() calls 2 function(s): assert_extract_sorted_candidates, pre_process_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free