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 d2e61f70_f7bc_26db_a574_ccdb1d1cf911["test_crash_missing_newline()"] ca2cb7f3_129e_2351_7658_5668e9773b08["haml.rs"] d2e61f70_f7bc_26db_a574_ccdb1d1cf911 -->|defined in| ca2cb7f3_129e_2351_7658_5668e9773b08 style d2e61f70_f7bc_26db_a574_ccdb1d1cf911 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