Skip to content

Commit 5c5d171

Browse files
author
Stefan Hoelzl
committed
test variant to exclude dot-files/dirs by default
1 parent 7662c2d commit 5c5d171

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/testsuite/package.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,3 +1422,26 @@ fn gitignore_negate() {
14221422
",
14231423
);
14241424
}
1425+
1426+
#[cargo_test]
1427+
fn exclude_dot_files_and_directories_by_default() {
1428+
include_exclude_test(
1429+
"[]",
1430+
"[]",
1431+
&["src/lib.rs", ".dotfile", ".dotdir/file"],
1432+
"Cargo.toml\n\
1433+
src/lib.rs\n\
1434+
",
1435+
);
1436+
1437+
include_exclude_test(
1438+
r#"["Cargo.toml", "src/lib.rs", ".dotfile", ".dotdir/file"]"#,
1439+
"[]",
1440+
&["src/lib.rs", ".dotfile", ".dotdir/file"],
1441+
".dotdir/file\n\
1442+
.dotfile\n\
1443+
Cargo.toml\n\
1444+
src/lib.rs\n\
1445+
",
1446+
);
1447+
}

0 commit comments

Comments
 (0)