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
  e4c3964e_fb76_eb78_ee62_38b7512934d1["test_exceptions()"]
  68044bbd_69a5_87e9_d616_0bc304991559["arbitrary_variable_machine.rs"]
  e4c3964e_fb76_eb78_ee62_38b7512934d1 -->|defined in| 68044bbd_69a5_87e9_d616_0bc304991559
  style e4c3964e_fb76_eb78_ee62_38b7512934d1 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