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 11aae42e_1ab0_0f21_ead6_47c647489a76["test_slim_syntax()"] c09b3ad8_e61d_4dcb_3819_2280661fbc5d["assert_extract_sorted_candidates()"] 11aae42e_1ab0_0f21_ead6_47c647489a76 -->|calls| c09b3ad8_e61d_4dcb_3819_2280661fbc5d 99bd82af_ea44_3bb9_15bc_4fd7af18fd2f["pre_process_input()"] 11aae42e_1ab0_0f21_ead6_47c647489a76 -->|calls| 99bd82af_ea44_3bb9_15bc_4fd7af18fd2f style 11aae42e_1ab0_0f21_ead6_47c647489a76 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
Source
Frequently Asked Questions
What does test_slim_syntax() do?
test_slim_syntax() is a function in the tailwindcss codebase.
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