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 d9806f88_5a34_9aeb_1c10_c023fd38f5cf["gitignore_skip_bom.rs"] f64b12ac_01a9_780d_8777_a85fc7edfe92["ignore::gitignore::GitignoreBuilder"] d9806f88_5a34_9aeb_1c10_c023fd38f5cf --> f64b12ac_01a9_780d_8777_a85fc7edfe92 style d9806f88_5a34_9aeb_1c10_c023fd38f5cf 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 Oxide 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: Oxide, 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