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 fb70307b_4921_e3a6_49c7_f8ad82fe1dd4["test_glob_with_symlinks()"] 6b48c515_a72f_7a7d_7ea7_b80f71a82b19["scanner.rs"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|defined in| 6b48c515_a72f_7a7d_7ea7_b80f71a82b19 56624ac4_6945_32d1_2b96_700de264829d["create_files_in()"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 50b40a21_f781_d5c3_8e77_48a27b4e0bec["symlink()"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|calls| 50b40a21_f781_d5c3_8e77_48a27b4e0bec 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736["public_source_entry_from_pattern()"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|calls| 0ffee7bc_8829_8e8e_00ee_4a8f4e4d9736 89cd8369_536c_74e5_91d1_719df04e4597["scan()"] fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 style fb70307b_4921_e3a6_49c7_f8ad82fe1dd4 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
Defined In
Source
Frequently Asked Questions
What does test_glob_with_symlinks() do?
test_glob_with_symlinks() is a function in the tailwindcss codebase, defined in crates/oxide/tests/scanner.rs.
Where is test_glob_with_symlinks() defined?
test_glob_with_symlinks() is defined in crates/oxide/tests/scanner.rs at line 1652.
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