Home / Function/ test_glob_with_symlinks() — tailwindcss Function Reference

test_glob_with_symlinks() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d9d8a10b_5803_fdce_f02e_68f780207b18["test_glob_with_symlinks()"]
  3a07392e_ccde_2e1e_c4dd_a2d547d20807["create_files_in()"]
  d9d8a10b_5803_fdce_f02e_68f780207b18 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  d80dacbd_df64_6172_2bea_aa3884c9c15e["symlink()"]
  d9d8a10b_5803_fdce_f02e_68f780207b18 -->|calls| d80dacbd_df64_6172_2bea_aa3884c9c15e
  d847ae88_0e93_5005_413e_ff86e08c4291["public_source_entry_from_pattern()"]
  d9d8a10b_5803_fdce_f02e_68f780207b18 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291
  66c99d71_b17e_d5a4_2a47_c675fac3c9cc["scan()"]
  d9d8a10b_5803_fdce_f02e_68f780207b18 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc
  style d9d8a10b_5803_fdce_f02e_68f780207b18 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 1652–1703

    fn test_glob_with_symlinks() {
        let dir = tempdir().unwrap().into_path();
        create_files_in(
            &dir,
            &[
                (".gitignore", "node_modules\ndist"),
                (
                    "node_modules/.pnpm/@org+my-ui-library/dist/index.ts",
                    "content-['node_modules/.pnpm/@org+my-ui-library/dist/index.ts']",
                ),
                // Make sure the `@org` does exist
                ("node_modules/@org/.gitkeep", ""),
            ],
        );
        let _ = symlink(
            dir.join("node_modules/.pnpm/@org+my-ui-library"),
            dir.join("node_modules/@org/my-ui-library"),
        );

        let mut scanner = Scanner::new(vec![public_source_entry_from_pattern(
            dir.clone(),
            "@source 'node_modules'",
        )]);
        let candidates = scanner.scan();

        assert_eq!(
            candidates,
            vec!["content-['node_modules/.pnpm/@org+my-ui-library/dist/index.ts']"]
        );

        let mut scanner = Scanner::new(vec![public_source_entry_from_pattern(
            dir.clone(),
            "@source 'node_modules/@org/my-ui-library'",
        )]);
        let candidates = scanner.scan();

        assert_eq!(
            candidates,
            vec!["content-['node_modules/.pnpm/@org+my-ui-library/dist/index.ts']"]
        );

        let mut scanner = Scanner::new(vec![public_source_entry_from_pattern(
            dir.clone(),
            "@source 'node_modules/@org'",
        )]);
        let candidates = scanner.scan();

        assert_eq!(
            candidates,
            vec!["content-['node_modules/.pnpm/@org+my-ui-library/dist/index.ts']"]
        );
    }

Domain

Subdomains

Frequently Asked Questions

What does test_glob_with_symlinks() do?
test_glob_with_symlinks() is a function in the tailwindcss codebase.
What does test_glob_with_symlinks() call?
test_glob_with_symlinks() calls 4 function(s): create_files_in, public_source_entry_from_pattern, scan, symlink.

Analyze Your Own Codebase

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

Try Supermodel Free