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

Dependency Diagram

graph TD
  61e80165_a6f3_fbe8_89d8_e41a68b0dc1c["test_exceptions()"]
  a0fb7bf4_10a9_c73e_1f40_d9fa8257af22["arbitrary_property_machine.rs"]
  61e80165_a6f3_fbe8_89d8_e41a68b0dc1c -->|defined in| a0fb7bf4_10a9_c73e_1f40_d9fa8257af22
  style 61e80165_a6f3_fbe8_89d8_e41a68b0dc1c fill:#6366f1,stroke:#818cf8,color:#fff

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

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free