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
  ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a["test_allow_default_ignored_files_via_gitignore()"]
  340ddba0_15e4_a309_9dea_cf6d6e73381d["scanner.rs"]
  ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a -->|defined in| 340ddba0_15e4_a309_9dea_cf6d6e73381d
  a055cb70_8b14_31db_b201_57369f5fda5a["create_files_in()"]
  ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a -->|calls| a055cb70_8b14_31db_b201_57369f5fda5a
  773530fa_5b76_d390_68d3_405d48fbecf7["public_source_entry_from_pattern()"]
  ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a -->|calls| 773530fa_5b76_d390_68d3_405d48fbecf7
  2f3305c3_ad36_6002_daa9_52b16e0424fd["scan()"]
  ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a -->|calls| 2f3305c3_ad36_6002_daa9_52b16e0424fd
  style ff5bf5bc_56ee_97f2_0cb4_17c908f3cc6a 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, defined in crates/oxide/tests/scanner.rs.
Where is test_allow_default_ignored_files_via_gitignore() defined?
test_allow_default_ignored_files_via_gitignore() is defined in crates/oxide/tests/scanner.rs at line 1385.
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