Home / Function/ test_allow_default_ignored_files_via_gitignore() — tailwindcss Function Reference

test_allow_default_ignored_files_via_gitignore() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d264aa60_79fb_23eb_7031_2ed75dea80d2["test_allow_default_ignored_files_via_gitignore()"]
  3a07392e_ccde_2e1e_c4dd_a2d547d20807["create_files_in()"]
  d264aa60_79fb_23eb_7031_2ed75dea80d2 -->|calls| 3a07392e_ccde_2e1e_c4dd_a2d547d20807
  d847ae88_0e93_5005_413e_ff86e08c4291["public_source_entry_from_pattern()"]
  d264aa60_79fb_23eb_7031_2ed75dea80d2 -->|calls| d847ae88_0e93_5005_413e_ff86e08c4291
  66c99d71_b17e_d5a4_2a47_c675fac3c9cc["scan()"]
  d264aa60_79fb_23eb_7031_2ed75dea80d2 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc
  style d264aa60_79fb_23eb_7031_2ed75dea80d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/tests/scanner.rs lines 1385–1413

    fn test_allow_default_ignored_files_via_gitignore() {
        // Create a temporary working directory
        let dir = tempdir().unwrap().into_path();

        // Create files
        create_files_in(
            &dir,
            &[
                ("index.html", "content-['index.html']"),
                (".gitignore", "index.html"),
            ],
        );

        let mut scanner = Scanner::new(vec![public_source_entry_from_pattern(
            dir.clone(),
            "@source '**/*'",
        )]);

        let candidates = scanner.scan();
        assert!(candidates.is_empty());

        let mut scanner = Scanner::new(vec![
            public_source_entry_from_pattern(dir.clone(), "@source '**/*'"),
            public_source_entry_from_pattern(dir.clone(), "@source './*.html'"),
        ]);

        let candidates = scanner.scan();
        assert_eq!(candidates, vec!["content-['index.html']"]);
    }

Domain

Subdomains

Frequently Asked Questions

What does test_allow_default_ignored_files_via_gitignore() do?
test_allow_default_ignored_files_via_gitignore() is a function in the tailwindcss codebase.
What does test_allow_default_ignored_files_via_gitignore() call?
test_allow_default_ignored_files_via_gitignore() calls 3 function(s): create_files_in, public_source_entry_from_pattern, scan.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free