Home / Function/ test_exceptions() — tailwindcss Function Reference

test_exceptions() — tailwindcss Function Reference

Architecture documentation for the test_exceptions() function in arbitrary_variable_machine.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8103a2af_5e91_bc2a_7840_a9479b98af12["test_exceptions()"]
  7a494844_a376_e466_6245_0c9d5be3b787["arbitrary_variable_machine.rs"]
  8103a2af_5e91_bc2a_7840_a9479b98af12 -->|defined in| 7a494844_a376_e466_6245_0c9d5be3b787
  style 8103a2af_5e91_bc2a_7840_a9479b98af12 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/arbitrary_variable_machine.rs lines 394–412

    fn test_exceptions() {
        for (input, expected) in [
            // JS string interpolation
            // As part of the variable
            ("(--my-${var})", vec![]),
            // As the fallback
            ("(--my-variable,${var})", vec![]),
            // As the fallback in strings
            (
                "(--my-variable,url('${var}'))",
                vec!["(--my-variable,url('${var}'))"],
            ),
        ] {
            assert_eq!(
                ArbitraryVariableMachine::<IdleState>::test_extract_all(input),
                expected
            );
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does test_exceptions() do?
test_exceptions() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/arbitrary_variable_machine.rs.
Where is test_exceptions() defined?
test_exceptions() is defined in crates/oxide/src/extractor/arbitrary_variable_machine.rs at line 394.

Analyze Your Own Codebase

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

Try Supermodel Free