gitignore_skip_bom.rs — tailwindcss Source File
Architecture documentation for gitignore_skip_bom.rs, a rust file in the tailwindcss codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 25ccd5af_75c2_5595_4317_b2183f33f898["gitignore_skip_bom.rs"] 41870fc0_835b_2e27_915d_5c93eeef5cec["ignore::gitignore::GitignoreBuilder"] 25ccd5af_75c2_5595_4317_b2183f33f898 --> 41870fc0_835b_2e27_915d_5c93eeef5cec style 25ccd5af_75c2_5595_4317_b2183f33f898 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
use ignore::gitignore::GitignoreBuilder;
const IGNORE_FILE: &'static str = "tests/gitignore_skip_bom.gitignore";
/// Skip a Byte-Order Mark (BOM) at the beginning of the file, matching Git's
/// behavior.
///
/// Ref: <https://github.com/BurntSushi/ripgrep/issues/2177>
#[test]
fn gitignore_skip_bom() {
let mut builder = GitignoreBuilder::new("ROOT");
let error = builder.add(IGNORE_FILE);
assert!(error.is_none(), "failed to open gitignore file");
let g = builder.build().unwrap();
assert!(g.matched("ignore/this/path", false).is_ignore());
}
Domain
Subdomains
Functions
Dependencies
- ignore::gitignore::GitignoreBuilder
Source
Frequently Asked Questions
What does gitignore_skip_bom.rs do?
gitignore_skip_bom.rs is a source file in the tailwindcss codebase, written in rust. It belongs to the OxideEngine domain, PreProcessors subdomain.
What functions are defined in gitignore_skip_bom.rs?
gitignore_skip_bom.rs defines 1 function(s): gitignore_skip_bom.
What does gitignore_skip_bom.rs depend on?
gitignore_skip_bom.rs imports 1 module(s): ignore::gitignore::GitignoreBuilder.
Where is gitignore_skip_bom.rs in the architecture?
gitignore_skip_bom.rs is located at crates/ignore/tests/gitignore_skip_bom.rs (domain: OxideEngine, subdomain: PreProcessors, directory: crates/ignore/tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free