Home / Function/ test_fluid_template_syntax() — tailwindcss Function Reference

test_fluid_template_syntax() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  01cd504c_5efa_a012_2a23_f6cb1294defb["test_fluid_template_syntax()"]
  67c0e082_b760_8463_2a6c_c5f39c564f98["assert_extract_candidates_contains()"]
  01cd504c_5efa_a012_2a23_f6cb1294defb -->|calls| 67c0e082_b760_8463_2a6c_c5f39c564f98
  style 01cd504c_5efa_a012_2a23_f6cb1294defb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/mod.rs lines 962–984

    fn test_fluid_template_syntax() {
        let input = r#"
            <f:variable name="bgStyle">
              <f:switch expression="{data.layout}">
                <f:case value="0">from-blue-900 to-cyan-200</f:case>
                <f:case value="1">from-cyan-600 to-teal-200</f:case>
                <f:defaultCase>from-blue-300 to-cyan-100</f:defaultCase>
              </f:switch>
            </f:variable>
        "#;

        assert_extract_candidates_contains(
            input,
            vec![
                "from-blue-900",
                "to-cyan-200",
                "from-cyan-600",
                "to-teal-200",
                "from-blue-300",
                "to-cyan-100",
            ],
        );
    }

Domain

Subdomains

Frequently Asked Questions

What does test_fluid_template_syntax() do?
test_fluid_template_syntax() is a function in the tailwindcss codebase.
What does test_fluid_template_syntax() call?
test_fluid_template_syntax() calls 1 function(s): assert_extract_candidates_contains.

Analyze Your Own Codebase

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

Try Supermodel Free