Home / Function/ it_respects_gitignore_in_workspace_root() — tailwindcss Function Reference

it_respects_gitignore_in_workspace_root() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  79707b39_a9a5_8a6c_5307_c2f9bd2877ee["it_respects_gitignore_in_workspace_root()"]
  4e97b231_bdcb_50f8_8ad3_53d02c45a8bb["scan_with_globs()"]
  79707b39_a9a5_8a6c_5307_c2f9bd2877ee -->|calls| 4e97b231_bdcb_50f8_8ad3_53d02c45a8bb
  style 79707b39_a9a5_8a6c_5307_c2f9bd2877ee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 1001–1026

    fn it_respects_gitignore_in_workspace_root() {
        let ScanResult {
            candidates,
            files,
            globs,
            normalized_sources,
        } = scan_with_globs(
            &[
                (".gitignore", "ignore-1.html\nweb/ignore-2.html"),
                ("src/index.html", "content-['src/index.html']"),
                ("web/index.html", "content-['web/index.html']"),
                ("web/ignore-1.html", "content-['web/ignore-1.html']"),
                ("web/ignore-2.html", "content-['web/ignore-2.html']"),
            ],
            vec!["@source './src'", "@source './web'"],
        );

        assert_eq!(
            candidates,
            vec!["content-['src/index.html']", "content-['web/index.html']",]
        );

        assert_eq!(files, vec!["src/index.html", "web/index.html",]);
        assert_eq!(globs, vec!["src/*", "web/*",]);
        assert_eq!(normalized_sources, vec!["src/**/*", "web/**/*",]);
    }

Domain

Subdomains

Frequently Asked Questions

What does it_respects_gitignore_in_workspace_root() do?
it_respects_gitignore_in_workspace_root() is a function in the tailwindcss codebase.
What does it_respects_gitignore_in_workspace_root() call?
it_respects_gitignore_in_workspace_root() 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