Home / Function/ it_should_ignore_and_expand_nested_ignored_folders() — tailwindcss Function Reference

it_should_ignore_and_expand_nested_ignored_folders() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9eafa991_290a_8814_30b1_269a3bd165b2["it_should_ignore_and_expand_nested_ignored_folders()"]
  340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"]
  9eafa991_290a_8814_30b1_269a3bd165b2 -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d
  2f3305c3_ad36_6002_daa9_52b16e0424fd["scan()"]
  9eafa991_290a_8814_30b1_269a3bd165b2 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd
  style 9eafa991_290a_8814_30b1_269a3bd165b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 391–483

    fn it_should_ignore_and_expand_nested_ignored_folders() {
        let ScanResult {
            files,
            globs,
            normalized_sources,
            ..
        } = scan(&[
            // Explicitly listed root files
            ("foo.html", ""),
            ("bar.html", ""),
            ("baz.html", ""),
            // Nested folder A, using glob
            ("nested-a/foo.html", ""),
            ("nested-a/bar.html", ""),
            ("nested-a/baz.html", ""),
            // Nested folder B, with deeply nested files, using glob
            ("nested-b/deeply-nested/foo.html", ""),
            ("nested-b/deeply-nested/bar.html", ""),
            ("nested-b/deeply-nested/baz.html", ""),
            // Nested folder C, with ignored sub-folder
            ("nested-c/foo.html", ""),
            ("nested-c/bar.html", ""),
            ("nested-c/baz.html", ""),
            //   Ignored folder
            ("nested-c/.gitignore", "ignored-folder/"),
            ("nested-c/ignored-folder/foo.html", ""),
            ("nested-c/ignored-folder/bar.html", ""),
            ("nested-c/ignored-folder/baz.html", ""),
            //   Deeply nested, without issues
            ("nested-c/sibling-folder/foo.html", ""),
            ("nested-c/sibling-folder/bar.html", ""),
            ("nested-c/sibling-folder/baz.html", ""),
            // Nested folder D, with deeply nested ignored folder
            ("nested-d/foo.html", ""),
            ("nested-d/bar.html", ""),
            ("nested-d/baz.html", ""),
            ("nested-d/.gitignore", "deep/"),
            ("nested-d/very/deeply/nested/deep/foo.html", ""),
            ("nested-d/very/deeply/nested/deep/bar.html", ""),
            ("nested-d/very/deeply/nested/deep/baz.html", ""),
            ("nested-d/very/deeply/nested/foo.html", ""),
            ("nested-d/very/deeply/nested/bar.html", ""),
            ("nested-d/very/deeply/nested/baz.html", ""),
            ("nested-d/very/deeply/nested/directory/foo.html", ""),
            ("nested-d/very/deeply/nested/directory/bar.html", ""),
            ("nested-d/very/deeply/nested/directory/baz.html", ""),
            ("nested-d/very/deeply/nested/directory/again/foo.html", ""),
        ]);

        assert_eq!(
            files,
            vec![
                "bar.html",
                "baz.html",
                "foo.html",
                "nested-a/bar.html",
                "nested-a/baz.html",
                "nested-a/foo.html",
                "nested-b/deeply-nested/bar.html",
                "nested-b/deeply-nested/baz.html",
                "nested-b/deeply-nested/foo.html",
                "nested-c/bar.html",
                "nested-c/baz.html",
                "nested-c/foo.html",
                "nested-c/sibling-folder/bar.html",
                "nested-c/sibling-folder/baz.html",
                "nested-c/sibling-folder/foo.html",
                "nested-d/bar.html",
                "nested-d/baz.html",
                "nested-d/foo.html",
                "nested-d/very/deeply/nested/bar.html",
                "nested-d/very/deeply/nested/baz.html",
                "nested-d/very/deeply/nested/directory/again/foo.html",
                "nested-d/very/deeply/nested/directory/bar.html",
                "nested-d/very/deeply/nested/directory/baz.html",
                "nested-d/very/deeply/nested/directory/foo.html",
                "nested-d/very/deeply/nested/foo.html",
            ]
        );
        assert_eq!(globs, vec![
            "*",

Domain

Subdomains

Calls

Frequently Asked Questions

What does it_should_ignore_and_expand_nested_ignored_folders() do?
it_should_ignore_and_expand_nested_ignored_folders() is a function in the tailwindcss codebase, defined in crates/oxide/tests/scanner.rs.
Where is it_should_ignore_and_expand_nested_ignored_folders() defined?
it_should_ignore_and_expand_nested_ignored_folders() is defined in crates/oxide/tests/scanner.rs at line 391.
What does it_should_ignore_and_expand_nested_ignored_folders() call?
it_should_ignore_and_expand_nested_ignored_folders() calls 1 function(s): scan.

Analyze Your Own Codebase

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

Try Supermodel Free