Home / Function/ test_js_tuple_syntax() — tailwindcss Function Reference

test_js_tuple_syntax() — tailwindcss Function Reference

Architecture documentation for the test_js_tuple_syntax() function in mod.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  fae1dce4_c39b_ab29_3403_e6befa4c0bec["test_js_tuple_syntax()"]
  eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"]
  fae1dce4_c39b_ab29_3403_e6befa4c0bec -->|defined in| eb5f3ab1_80da_abe4_f35c_a91e8e409b69
  80ff0a5a_eb98_52e8_b801_bcc7263c7a89["assert_extract_sorted_candidates()"]
  fae1dce4_c39b_ab29_3403_e6befa4c0bec -->|calls| 80ff0a5a_eb98_52e8_b801_bcc7263c7a89
  style fae1dce4_c39b_ab29_3403_e6befa4c0bec fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/mod.rs lines 789–818

    fn test_js_tuple_syntax() {
        for (input, expected) in [
            // Split
            (
                r#"["h-[calc(100vh-(var(--spacing)*8)-(var(--spacing)*14))]",\n  true],"#,
                vec![
                    "h-[calc(100vh-(var(--spacing)*8)-(var(--spacing)*14))]",
                    "true",
                ],
            ),
            // Same line
            (
                r#"["h-[calc(100vh-(var(--spacing)*8)-(var(--spacing)*14))]", true],"#,
                vec![
                    "h-[calc(100vh-(var(--spacing)*8)-(var(--spacing)*14))]",
                    "true",
                ],
            ),
            // Split with space in front
            (
                r#"[ "h-[calc(100vh-(var(--spacing)*8)-(var(--spacing)*14))]",\n  true],"#,
                vec![
                    "h-[calc(100vh-(var(--spacing)*8)-(var(--spacing)*14))]",
                    "true",
                ],
            ),
        ] {
            assert_extract_sorted_candidates(input, expected);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does test_js_tuple_syntax() do?
test_js_tuple_syntax() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is test_js_tuple_syntax() defined?
test_js_tuple_syntax() is defined in crates/oxide/src/extractor/mod.rs at line 789.
What does test_js_tuple_syntax() call?
test_js_tuple_syntax() calls 1 function(s): assert_extract_sorted_candidates.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free