Home / Function/ test_globs_with_recursive_symlinks() — tailwindcss Function Reference

test_globs_with_recursive_symlinks() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 1706–1732

    fn test_globs_with_recursive_symlinks() {
        let dir = tempdir().unwrap().into_path();
        create_files_in(
            &dir,
            &[
                ("b/index.html", "content-['b/index.html']"),
                ("z/index.html", "content-['z/index.html']"),
            ],
        );

        // Create recursive symlinks
        let _ = symlink(dir.join("a"), dir.join("b"));
        let _ = symlink(dir.join("b/c"), dir.join("c"));
        let _ = symlink(dir.join("b/root"), &dir);
        let _ = symlink(dir.join("c"), dir.join("a"));

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

        assert_eq!(
            candidates,
            vec!["content-['b/index.html']", "content-['z/index.html']"]
        );
    }

Domain

Subdomains

Frequently Asked Questions

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