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
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028["test_glob_with_symlinks()"]
  96c928f4_eee8_bcbc_0339_e2dce4b2d810["create_files_in()"]
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028 -->|calls| 96c928f4_eee8_bcbc_0339_e2dce4b2d810
  75f4fa23_9de1_85da_70ea_ccb8f56e6e13["symlink()"]
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028 -->|calls| 75f4fa23_9de1_85da_70ea_ccb8f56e6e13
  257cbf08_9e94_64b3_97f2_0416460fab35["public_source_entry_from_pattern()"]
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028 -->|calls| 257cbf08_9e94_64b3_97f2_0416460fab35
  1581ed51_04e1_62c1_6e26_ea43cf82d5f9["scan()"]
  e01208ed_2a25_8f8d_e05f_4de7d9e2f028 -->|calls| 1581ed51_04e1_62c1_6e26_ea43cf82d5f9
  style e01208ed_2a25_8f8d_e05f_4de7d9e2f028 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