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 37140770_8a96_c8dd_6362_680562edae06["test_exceptions()"] 67459930_8537_2caf_b2cb_b2270e50566c["arbitrary_property_machine.rs"] 37140770_8a96_c8dd_6362_680562edae06 -->|defined in| 67459930_8537_2caf_b2cb_b2270e50566c style 37140770_8a96_c8dd_6362_680562edae06 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
Source
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