Home / Function/ test_crash_missing_newline() — tailwindcss Function Reference

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

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

Analyze Your Own Codebase

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

Try Supermodel Free