Skip to content

Commit de8abe6

Browse files
committed
run tests against all input files we have
1 parent 933ad9e commit de8abe6

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

git-index/tests/index/file/write.rs

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,25 @@ fn state_comparisons_with_various_extension_configurations() {
5555
}
5656
}
5757

58+
enum Kind {
59+
Generated(&'static str),
60+
Loose(&'static str),
61+
}
62+
use Kind::*;
63+
5864
for fixture in [
59-
"V2_empty",
60-
"v2",
61-
"v2_more_files",
62-
"v2_split_index",
63-
"v4_more_files_IEOT",
65+
Loose("extended-flags"),
66+
Loose("conflicting-file"),
67+
Loose("very-long-path"),
68+
Loose("FSMN"),
69+
Loose("REUC"),
70+
Loose("UNTR-with-oids"),
71+
Loose("UNTR"),
72+
Generated("V2_empty"),
73+
Generated("v2"),
74+
Generated("v2_more_files"),
75+
Generated("v2_split_index"),
76+
Generated("v4_more_files_IEOT"),
6477
] {
6578
for options in [
6679
options_with(write::Extensions::None),
@@ -74,7 +87,10 @@ fn state_comparisons_with_various_extension_configurations() {
7487
end_of_index_entry: true,
7588
}),
7689
] {
77-
let path = fixture_index_path(fixture);
90+
let (path, fixture) = match fixture {
91+
Generated(name) => (fixture_index_path(name), name),
92+
Loose(name) => (loose_file_path(name), name),
93+
};
7894
let expected = git_index::File::at(&path, Default::default()).unwrap();
7995

8096
let mut out = Vec::<u8>::new();

0 commit comments

Comments
 (0)