it_should_scan_absolute_paths() — tailwindcss Function Reference
Architecture documentation for the it_should_scan_absolute_paths() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 198cd311_5d93_9913_d613_67e343d9a0ad["it_should_scan_absolute_paths()"] 340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"] 198cd311_5d93_9913_d613_67e343d9a0ad -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d a055cb70_8b14_31db_b201_57369f5fda5a["create_files_in()"] 198cd311_5d93_9913_d613_67e343d9a0ad -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a 2f3305c3_ad36_6002_daa9_52b16e0424fd["scan()"] 198cd311_5d93_9913_d613_67e343d9a0ad -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd style 198cd311_5d93_9913_d613_67e343d9a0ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/tests/scanner.rs lines 653–689
fn it_should_scan_absolute_paths() {
// Create a temporary working directory
let dir = tempdir().unwrap().into_path();
// Initialize this directory as a git repository
let _ = Command::new("git").arg("init").current_dir(&dir).output();
// Create files
create_files_in(
&dir,
&[
("project-a/index.html", "content-['project-a/index.html']"),
("project-b/index.html", "content-['project-b/index.html']"),
],
);
// Get POSIX-style absolute path
let full_path = format!("{}", dir.display()).replace('\\', "/");
let sources = vec![PublicSourceEntry {
base: full_path.clone(),
pattern: full_path.clone(),
negated: false,
}];
let mut scanner = Scanner::new(sources);
let candidates = scanner.scan();
// We've done the initial scan and found the files
assert_eq!(
candidates,
vec![
"content-['project-a/index.html']",
"content-['project-b/index.html']"
]
);
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does it_should_scan_absolute_paths() do?
it_should_scan_absolute_paths() is a function in the tailwindcss codebase, defined in crates/oxide/tests/scanner.rs.
Where is it_should_scan_absolute_paths() defined?
it_should_scan_absolute_paths() is defined in crates/oxide/tests/scanner.rs at line 653.
What does it_should_scan_absolute_paths() call?
it_should_scan_absolute_paths() calls 2 function(s): create_files_in, scan.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free