Home / Function/ it_should_include_defined_extensions_that_are_ignored_by_default() — tailwindcss Function Reference

it_should_include_defined_extensions_that_are_ignored_by_default() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  72f5dba3_6cf7_d92c_b0eb_3871aa635da4["it_should_include_defined_extensions_that_are_ignored_by_default()"]
  4e97b231_bdcb_50f8_8ad3_53d02c45a8bb["scan_with_globs()"]
  72f5dba3_6cf7_d92c_b0eb_3871aa635da4 -->|calls| 4e97b231_bdcb_50f8_8ad3_53d02c45a8bb
  style 72f5dba3_6cf7_d92c_b0eb_3871aa635da4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 916–951

    fn it_should_include_defined_extensions_that_are_ignored_by_default() {
        let ScanResult {
            candidates,
            files,
            globs,
            normalized_sources,
        } = scan_with_globs(
            // Typically skipped
            &[
                ("src/index.exe", "content-['src/index.exe']"),
                ("src/index.bin", "content-['src/index.bin']"),
                ("out/out.exe", "content-['out/out.exe']"),
            ],
            // But explicitly included
            vec!["@source '**/*'", "@source 'src/**/*.{exe,bin}'"],
        );

        assert_eq!(
            candidates,
            vec!["content-['src/index.bin']", "content-['src/index.exe']",]
        );
        assert_eq!(files, vec!["src/index.bin", "src/index.exe",]);
        assert_eq!(
            globs,
            vec![
                "*",
                // Contains `.exe` and `.bin` in the list
                "out/**/*.{aspx,astro,bin,cjs,cts,eex,erb,exe,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/{**/*.bin,**/*.exe,**/*.{aspx,astro,bin,cjs,cts,eex,erb,exe,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!["**/*", "src/**/*.bin", "src/**/*.exe"]
        );
    }

Domain

Subdomains

Frequently Asked Questions

What does it_should_include_defined_extensions_that_are_ignored_by_default() do?
it_should_include_defined_extensions_that_are_ignored_by_default() is a function in the tailwindcss codebase.
What does it_should_include_defined_extensions_that_are_ignored_by_default() call?
it_should_include_defined_extensions_that_are_ignored_by_default() 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