it_should_ignore_negated_custom_sources() — tailwindcss Function Reference
Architecture documentation for the it_should_ignore_negated_custom_sources() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 4e13afce_c80c_b799_a36f_5d3764e4894e["it_should_ignore_negated_custom_sources()"] 2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096["scan_with_globs()"] 4e13afce_c80c_b799_a36f_5d3764e4894e -->|calls| 2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096 style 4e13afce_c80c_b799_a36f_5d3764e4894e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/tests/scanner.rs lines 844–913
fn it_should_ignore_negated_custom_sources() {
let ScanResult {
candidates,
files,
globs,
normalized_sources,
} = scan_with_globs(
&[
("src/index.ts", "content-['src/index.ts']"),
("src/colors/red.jsx", "content-['src/colors/red.jsx']"),
("src/colors/blue.tsx", "content-['src/colors/blue.tsx']"),
("src/colors/green.tsx", "content-['src/colors/green.tsx']"),
("src/utils/string.ts", "content-['src/utils/string.ts']"),
("src/utils/date.ts", "content-['src/utils/date.ts']"),
("src/utils/file.ts", "content-['src/utils/file.ts']"),
(
"src/admin/foo/template.html",
"content-['src/admin/template.html']",
),
(
"src/templates/index.html",
"content-['src/templates/index.html']",
),
],
vec![
"@source '**/*'",
"@source not 'src/index.ts'",
"@source not '**/*.{jsx,tsx}'",
"@source not 'src/utils'",
"@source not 'dist'",
],
);
assert_eq!(
candidates,
vec![
"content-['src/admin/template.html']",
"content-['src/templates/index.html']",
]
);
assert_eq!(
files,
vec![
"src/admin/foo/template.html",
"src/templates/index.html",
// These files are ignored and thus do not need to be watched:
// "src/colors/blue.tsx",
// "src/colors/green.tsx",
// "src/colors/red.jsx",
// "src/index.ts",
// "src/utils/date.ts",
// "src/utils/file.ts",
// "src/utils/string.ts"
]
);
assert_eq!(
globs,
vec![
"*",
"src/*/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}",
"src/admin/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}",
"src/colors/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}",
"src/templates/**/*.{aspx,astro,cjs,cts,eex,erb,gjs,gts,haml,handlebars,hbs,heex,html,jade,js,jsx,liquid,md,mdx,mjs,mts,mustache,njk,nunjucks,php,pug,py,razor,rb,rhtml,rs,slim,svelte,tpl,ts,tsx,twig,vue}",
]
);
assert_eq!(normalized_sources, vec!["**/*",]);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does it_should_ignore_negated_custom_sources() do?
it_should_ignore_negated_custom_sources() is a function in the tailwindcss codebase.
What does it_should_ignore_negated_custom_sources() call?
it_should_ignore_negated_custom_sources() calls 1 function(s): scan_with_globs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free