Home / Function/ test_exceptions() — tailwindcss Function Reference

test_exceptions() — tailwindcss Function Reference

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

Entity Profile

Relationship Graph

Source Code

crates/oxide/src/extractor/arbitrary_property_machine.rs lines 437–456

    fn test_exceptions() {
        for (input, expected) in [
            // JS string interpolation
            // In key
            ("[${x}:value]", vec![]),
            // As part of the key
            ("[background-${property}:value]", vec![]),
            // In value
            ("[key:${x}]", vec![]),
            // As part of the value
            ("[key:value-${x}]", vec![]),
            // Allowed in strings
            ("[--img:url('${x}')]", vec!["[--img:url('${x}')]"]),
        ] {
            assert_eq!(
                ArbitraryPropertyMachine::<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