Home / Function/ test_partial_globs_with_symlinks() — tailwindcss Function Reference

test_partial_globs_with_symlinks() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2["test_partial_globs_with_symlinks()"]
  340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"]
  2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d
  a055cb70_8b14_31db_b201_57369f5fda5a["create_files_in()"]
  2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a
  56477cae_0f07_03e9_7681_f7d614264561["symlink()"]
  2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 -->|calls| 56477cae_0f07_03e9_7681_f7d614264561
  2f3305c3_ad36_6002_daa9_52b16e0424fd["scan()"]
  2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd
  773530fa_5b76_d390_68d3_405d48fbecf7["public_source_entry_from_pattern()"]
  2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7
  style 2c6a6b98_67be_e6b2_f7bb_58b8ccb8c1d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 1735–1762

    fn test_partial_globs_with_symlinks() {
        let dir = tempdir().unwrap().into_path();
        create_files_in(&dir, &[("abcd/xyz.html", "content-['abcd/xyz.html']")]);
        let _ = symlink(dir.join("abcd"), dir.join("efgh"));

        // No sources should find nothing
        let mut scanner = Scanner::new(vec![]);
        let candidates = scanner.scan();
        assert!(candidates.is_empty());

        // Full symlinked folder name, should find the file
        let mut scanner = Scanner::new(vec![public_source_entry_from_pattern(
            dir.clone(),
            "@source 'efgh/*.html'",
        )]);
        let candidates = scanner.scan();

        assert_eq!(candidates, vec!["content-['abcd/xyz.html']"]);

        // Partially referencing the symlinked folder with a glob, should find the file
        let mut scanner = Scanner::new(vec![public_source_entry_from_pattern(
            dir.clone(),
            "@source 'ef*/*.html'",
        )]);
        let candidates = scanner.scan();

        assert_eq!(candidates, vec!["content-['abcd/xyz.html']"]);
    }

Domain

Subdomains

Frequently Asked Questions

What does test_partial_globs_with_symlinks() do?
test_partial_globs_with_symlinks() is a function in the tailwindcss codebase, defined in crates/oxide/tests/scanner.rs.
Where is test_partial_globs_with_symlinks() defined?
test_partial_globs_with_symlinks() is defined in crates/oxide/tests/scanner.rs at line 1735.
What does test_partial_globs_with_symlinks() call?
test_partial_globs_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