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
  2641acbe_6397_f29e_fb4d_33ad36d8d268["it_should_include_defined_extensions_that_are_ignored_by_default()"]
  2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096["scan_with_globs()"]
  2641acbe_6397_f29e_fb4d_33ad36d8d268 -->|calls| 2c5d72c1_5cbe_ebbe_4eca_30cd90f4d096
  style 2641acbe_6397_f29e_fb4d_33ad36d8d268 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