Home / Function/ test_leptos_extraction() — tailwindcss Function Reference

test_leptos_extraction() — tailwindcss Function Reference

Architecture documentation for the test_leptos_extraction() function in rust.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  27199a47_12dc_3c7a_60d4_f1c9fe37bc9b["test_leptos_extraction()"]
  e4f33efa_e6ad_42c6_e565_e6aa98401427["rust.rs"]
  27199a47_12dc_3c7a_60d4_f1c9fe37bc9b -->|defined in| e4f33efa_e6ad_42c6_e565_e6aa98401427
  style 27199a47_12dc_3c7a_60d4_f1c9fe37bc9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/pre_processors/rust.rs lines 130–150

    fn test_leptos_extraction() {
        for (input, expected) in [
            // Spaces
            (
                "<div class:flex class:px-2.5={condition()}>",
                "<div class flex class px-2.5={condition()}>",
            ),
            // Tabs
            (
                "<div\tclass:flex class:px-2.5={condition()}>",
                "<div class flex class px-2.5={condition()}>",
            ),
            // Newlines
            (
                "<div\nclass:flex class:px-2.5={condition()}>",
                "<div class flex class px-2.5={condition()}>",
            ),
        ] {
            Rust::test(input, expected);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does test_leptos_extraction() do?
test_leptos_extraction() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/pre_processors/rust.rs.
Where is test_leptos_extraction() defined?
test_leptos_extraction() is defined in crates/oxide/src/extractor/pre_processors/rust.rs at line 130.

Analyze Your Own Codebase

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

Try Supermodel Free