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
  3cdb8233_b081_8b34_6b59_854c1795b003["it_should_ignore_and_expand_nested_ignored_folders()"]
  6b48c515_a72f_7a7d_7ea7_b80f71a82b19["scanner.rs"]
  3cdb8233_b081_8b34_6b59_854c1795b003 -->|defined in| 6b48c515_a72f_7a7d_7ea7_b80f71a82b19
  89cd8369_536c_74e5_91d1_719df04e4597["scan()"]
  3cdb8233_b081_8b34_6b59_854c1795b003 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597
  style 3cdb8233_b081_8b34_6b59_854c1795b003 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