Home / Function/ it_should_scan_folders_with_extensions() — tailwindcss Function Reference

it_should_scan_folders_with_extensions() — tailwindcss Function Reference

Architecture documentation for the it_should_scan_folders_with_extensions() function in scanner.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  9ef93ebb_d7a3_7b4b_b3bd_c648c3131d74["it_should_scan_folders_with_extensions()"]
  2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096["scan_with_globs()"]
  9ef93ebb_d7a3_7b4b_b3bd_c648c3131d74 -->|calls| 2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096
  style 9ef93ebb_d7a3_7b4b_b3bd_c648c3131d74 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 566–601

    fn it_should_scan_folders_with_extensions() {
        // These look like files, but they are folders
        let ScanResult {
            candidates,
            normalized_sources,
            ..
        } = scan_with_globs(
            &[
                (
                    "my-folder.templates/foo.html",
                    "content-['my-folder.templates/foo.html']",
                ),
                (
                    "my-folder.bin/foo.html",
                    "content-['my-folder.bin/foo.html']",
                ),
            ],
            vec![
                "@source '**/*'",
                "@source './my-folder.templates'",
                "@source './my-folder.bin'",
            ],
        );

        assert_eq!(
            candidates,
            vec![
                "content-['my-folder.bin/foo.html']",
                "content-['my-folder.templates/foo.html']",
            ]
        );
        assert_eq!(
            normalized_sources,
            vec!["**/*", "my-folder.bin/**/*", "my-folder.templates/**/*"]
        );
    }

Domain

Subdomains

Frequently Asked Questions

What does it_should_scan_folders_with_extensions() do?
it_should_scan_folders_with_extensions() is a function in the tailwindcss codebase.
What does it_should_scan_folders_with_extensions() call?
it_should_scan_folders_with_extensions() calls 1 function(s): scan_with_globs.

Analyze Your Own Codebase

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

Try Supermodel Free