mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
test variant to exclude dot-files/dirs by default
This commit is contained in:
parent
7662c2d8bb
commit
5c5d1718e3
@ -1422,3 +1422,26 @@ fn gitignore_negate() {
|
|||||||
",
|
",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cargo_test]
|
||||||
|
fn exclude_dot_files_and_directories_by_default() {
|
||||||
|
include_exclude_test(
|
||||||
|
"[]",
|
||||||
|
"[]",
|
||||||
|
&["src/lib.rs", ".dotfile", ".dotdir/file"],
|
||||||
|
"Cargo.toml\n\
|
||||||
|
src/lib.rs\n\
|
||||||
|
",
|
||||||
|
);
|
||||||
|
|
||||||
|
include_exclude_test(
|
||||||
|
r#"["Cargo.toml", "src/lib.rs", ".dotfile", ".dotdir/file"]"#,
|
||||||
|
"[]",
|
||||||
|
&["src/lib.rs", ".dotfile", ".dotdir/file"],
|
||||||
|
".dotdir/file\n\
|
||||||
|
.dotfile\n\
|
||||||
|
Cargo.toml\n\
|
||||||
|
src/lib.rs\n\
|
||||||
|
",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user