test_crash_missing_newline() — tailwindcss Function Reference
Architecture documentation for the test_crash_missing_newline() function in haml.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ea8d91cf_1ae2_e8a7_e478_9556a4a35df7["test_crash_missing_newline()"] a8f656ed_d21d_021d_f2d0_b35406335f14["haml.rs"] ea8d91cf_1ae2_e8a7_e478_9556a4a35df7 -->|defined in| a8f656ed_d21d_021d_f2d0_b35406335f14 style ea8d91cf_1ae2_e8a7_e478_9556a4a35df7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/pre_processors/haml.rs lines 457–465
fn test_crash_missing_newline() {
// The empty `""` will introduce a newline
let good = ["- index = 0", "- index += 1", ""].join("\n");
Haml::test_extract_contains(&good, vec!["index"]);
// This used to crash before the fix
let bad = ["- index = 0", "- index += 1"].join("\n");
Haml::test_extract_contains(&bad, vec!["index"]);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_crash_missing_newline() do?
test_crash_missing_newline() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/haml.rs.
Where is test_crash_missing_newline() defined?
test_crash_missing_newline() is defined in crates/oxide/src/extractor/pre_processors/haml.rs at line 457.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free