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

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

Analyze Your Own Codebase

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

Try Supermodel Free