Home / Function/ test_elixir_pre_processor() — tailwindcss Function Reference

test_elixir_pre_processor() — tailwindcss Function Reference

Architecture documentation for the test_elixir_pre_processor() function in elixir.rs from the tailwindcss codebase.

Entity Profile

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/elixir.rs lines 73–98

    fn test_elixir_pre_processor() {
        for (input, expected) in [
            // Simple sigils
            ("~W(flex underline)", "~W flex underline "),
            ("~W[flex underline]", "~W flex underline "),
            ("~W{flex underline}", "~W flex underline "),
            // Sigils with nested brackets
            (
                "~W(text-(--my-color) bg-(--my-color))",
                "~W text-(--my-color) bg-(--my-color) ",
            ),
            ("~W[text-[red] bg-[red]]", "~W text-[red] bg-[red] "),
            // Word sigils with modifiers
            ("~W(flex underline)a", "~W flex underline a"),
            ("~W(flex underline)c", "~W flex underline c"),
            ("~W(flex underline)s", "~W flex underline s"),
            // Other sigil types
            ("~w(flex underline)", "~w flex underline "),
            ("~c(flex underline)", "~c flex underline "),
            ("~C(flex underline)", "~C flex underline "),
            ("~s(flex underline)", "~s flex underline "),
            ("~S(flex underline)", "~S flex underline "),
        ] {
            Elixir::test(input, expected);
        }
    }

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free