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 ca3be31f_555a_9fe8_e607_ee66ba4ba6f2["it_should_scan_absolute_paths()"] 6b48c515_a72f_7a7d_7ea7_b80f71a82b19["scanner.rs"] ca3be31f_555a_9fe8_e607_ee66ba4ba6f2 -->|defined in| 6b48c515_a72f_7a7d_7ea7_b80f71a82b19 56624ac4_6945_32d1_2b96_700de264829d["create_files_in()"] ca3be31f_555a_9fe8_e607_ee66ba4ba6f2 -->|calls| 56624ac4_6945_32d1_2b96_700de264829d 89cd8369_536c_74e5_91d1_719df04e4597["scan()"] ca3be31f_555a_9fe8_e607_ee66ba4ba6f2 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 style ca3be31f_555a_9fe8_e607_ee66ba4ba6f2 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