@@ -55,12 +55,25 @@ fn state_comparisons_with_various_extension_configurations() {
55
55
}
56
56
}
57
57
58
+ enum Kind {
59
+ Generated ( & ' static str ) ,
60
+ Loose ( & ' static str ) ,
61
+ }
62
+ use Kind :: * ;
63
+
58
64
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" ) ,
64
77
] {
65
78
for options in [
66
79
options_with ( write:: Extensions :: None ) ,
@@ -74,7 +87,10 @@ fn state_comparisons_with_various_extension_configurations() {
74
87
end_of_index_entry : true ,
75
88
} ) ,
76
89
] {
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
+ } ;
78
94
let expected = git_index:: File :: at ( & path, Default :: default ( ) ) . unwrap ( ) ;
79
95
80
96
let mut out = Vec :: < u8 > :: new ( ) ;
0 commit comments