@@ -56,11 +56,7 @@ void main() {
56
56
'route' : '/' ,
57
57
'middleware' : false ,
58
58
'files' : [
59
- {
60
- 'name' : '.._test_.fixtures_single_routes_index' ,
61
- 'path' : '../test/.fixtures/single/routes/index.dart' ,
62
- 'route' : '/routes'
63
- }
59
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' }
64
60
]
65
61
}
66
62
];
@@ -84,16 +80,8 @@ void main() {
84
80
'route' : '/' ,
85
81
'middleware' : false ,
86
82
'files' : [
87
- {
88
- 'name' : '.._test_.fixtures_multiple_top_level_routes_index' ,
89
- 'path' : '../test/.fixtures/multiple_top_level/routes/index.dart' ,
90
- 'route' : '/routes'
91
- },
92
- {
93
- 'name' : '.._test_.fixtures_multiple_top_level_routes_hello' ,
94
- 'path' : '../test/.fixtures/multiple_top_level/routes/hello.dart' ,
95
- 'route' : '/hello'
96
- }
83
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' },
84
+ {'name' : 'hello' , 'path' : '../routes/hello.dart' , 'route' : '/hello' }
97
85
]
98
86
}
99
87
];
@@ -123,11 +111,7 @@ void main() {
123
111
'route' : '/' ,
124
112
'middleware' : false ,
125
113
'files' : [
126
- {
127
- 'name' : '.._test_.fixtures_nested_routes_index' ,
128
- 'path' : '../test/.fixtures/nested/routes/index.dart' ,
129
- 'route' : '/routes'
130
- }
114
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' }
131
115
]
132
116
},
133
117
{
@@ -136,8 +120,8 @@ void main() {
136
120
'middleware' : false ,
137
121
'files' : [
138
122
{
139
- 'name' : '.._test_.fixtures_nested_routes_echo_message ' ,
140
- 'path' : '../test/.fixtures/nested/ routes/echo/message.dart' ,
123
+ 'name' : 'echo_message ' ,
124
+ 'path' : '../routes/echo/message.dart' ,
141
125
'route' : '/message'
142
126
}
143
127
]
@@ -174,10 +158,8 @@ void main() {
174
158
'middleware' : false ,
175
159
'files' : [
176
160
{
177
- 'name' :
178
- '''.._test_.fixtures_nested_directories_routes_echo_message_index''' ,
179
- 'path' :
180
- '../test/.fixtures/nested_directories/routes/echo/message/index.dart' ,
161
+ 'name' : 'echo_message_index' ,
162
+ 'path' : '../routes/echo/message/index.dart' ,
181
163
'route' : '/'
182
164
}
183
165
]
@@ -212,11 +194,7 @@ void main() {
212
194
'route' : '/' ,
213
195
'middleware' : false ,
214
196
'files' : [
215
- {
216
- 'name' : '.._test_.fixtures_dynamic_routes_index' ,
217
- 'path' : '../test/.fixtures/dynamic/routes/index.dart' ,
218
- 'route' : '/routes'
219
- }
197
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' }
220
198
]
221
199
},
222
200
{
@@ -225,8 +203,8 @@ void main() {
225
203
'middleware' : false ,
226
204
'files' : [
227
205
{
228
- 'name' : r'.._test_.fixtures_dynamic_routes_echo_ $message' ,
229
- 'path' : '../test/.fixtures/dynamic/ routes/echo/[message].dart' ,
206
+ 'name' : r'echo_ $message' ,
207
+ 'path' : '../routes/echo/[message].dart' ,
230
208
'route' : '/<message>'
231
209
}
232
210
]
@@ -255,22 +233,15 @@ void main() {
255
233
'route' : '/' ,
256
234
'middleware' : false ,
257
235
'files' : [
236
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' },
258
237
{
259
- 'name' : '.._test_.fixtures_dynamic_nested_routes_index' ,
260
- 'path' : '../test/.fixtures/dynamic_nested/routes/index.dart' ,
261
- 'route' : '/routes'
262
- },
263
- {
264
- 'name' : r'.._test_.fixtures_dynamic_nested_routes_$user_$name' ,
265
- 'path' :
266
- '../test/.fixtures/dynamic_nested/routes/[user]/[name].dart' ,
238
+ 'name' : r'$user_$name' ,
239
+ 'path' : '../routes/[user]/[name].dart' ,
267
240
'route' : '/<user>/<name>'
268
241
},
269
242
{
270
- 'name' :
271
- r'.._test_.fixtures_dynamic_nested_routes_$user_$id_index' ,
272
- 'path' :
273
- '../test/.fixtures/dynamic_nested/routes/[user]/[id]/index.dart' ,
243
+ 'name' : r'$user_$id_index' ,
244
+ 'path' : '../routes/[user]/[id]/index.dart' ,
274
245
'route' : '/<user>/<id>'
275
246
}
276
247
]
@@ -307,17 +278,10 @@ void main() {
307
278
'route' : '/' ,
308
279
'middleware' : false ,
309
280
'files' : [
281
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' },
310
282
{
311
- 'name' : '.._test_.fixtures_dynamic_static_nesting1_routes_index' ,
312
- 'path' :
313
- '../test/.fixtures/dynamic_static_nesting1/routes/index.dart' ,
314
- 'route' : '/routes'
315
- },
316
- {
317
- 'name' :
318
- r'''.._test_.fixtures_dynamic_static_nesting1_routes_$id_api_index''' ,
319
- 'path' :
320
- '../test/.fixtures/dynamic_static_nesting1/routes/[id]/api/index.dart' ,
283
+ 'name' : r'$id_api_index' ,
284
+ 'path' : '../routes/[id]/api/index.dart' ,
321
285
'route' : '/<id>/api'
322
286
}
323
287
]
@@ -353,17 +317,10 @@ void main() {
353
317
'route' : '/' ,
354
318
'middleware' : false ,
355
319
'files' : [
320
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' },
356
321
{
357
- 'name' : '.._test_.fixtures_dynamic_static_nesting2_routes_index' ,
358
- 'path' :
359
- '../test/.fixtures/dynamic_static_nesting2/routes/index.dart' ,
360
- 'route' : '/routes'
361
- },
362
- {
363
- 'name' :
364
- r'''.._test_.fixtures_dynamic_static_nesting2_routes_$id_api_test''' ,
365
- 'path' :
366
- '../test/.fixtures/dynamic_static_nesting2/routes/[id]/api/test.dart' ,
322
+ 'name' : r'$id_api_test' ,
323
+ 'path' : '../routes/[id]/api/test.dart' ,
367
324
'route' : '/<id>/api/test'
368
325
}
369
326
]
@@ -399,21 +356,14 @@ void main() {
399
356
'route' : '/' ,
400
357
'middleware' : false ,
401
358
'files' : [
359
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' },
402
360
{
403
- 'name' : '.._test_.fixtures_dynamic_static_nesting3_routes_index' ,
404
- 'path' :
405
- '../test/.fixtures/dynamic_static_nesting3/routes/index.dart' ,
406
- 'route' : '/routes'
407
- },
408
- {
409
- 'name' :
410
- r'''.._test_.fixtures_dynamic_static_nesting3_routes_$id_api_$name_index''' ,
411
- 'path' :
412
- '../test/.fixtures/dynamic_static_nesting3/routes/[id]/api/[name]/index.dart' ,
361
+ 'name' : r'$id_api_$name_index' ,
362
+ 'path' : '../routes/[id]/api/[name]/index.dart' ,
413
363
'route' : '/<id>/api/<name>'
414
364
}
415
365
]
416
- },
366
+ }
417
367
];
418
368
final directory = Directory (
419
369
path.join (
@@ -447,21 +397,14 @@ void main() {
447
397
'route' : '/' ,
448
398
'middleware' : false ,
449
399
'files' : [
400
+ {'name' : 'index' , 'path' : '../routes/index.dart' , 'route' : '/' },
450
401
{
451
- 'name' : '.._test_.fixtures_dynamic_static_nesting4_routes_index' ,
452
- 'path' :
453
- '../test/.fixtures/dynamic_static_nesting4/routes/index.dart' ,
454
- 'route' : '/routes'
455
- },
456
- {
457
- 'name' :
458
- r'''.._test_.fixtures_dynamic_static_nesting4_routes_$id_api_$name_test''' ,
459
- 'path' :
460
- '../test/.fixtures/dynamic_static_nesting4/routes/[id]/api/[name]/test.dart' ,
402
+ 'name' : r'$id_api_$name_test' ,
403
+ 'path' : '../routes/[id]/api/[name]/test.dart' ,
461
404
'route' : '/<id>/api/<name>/test'
462
405
}
463
406
]
464
- },
407
+ }
465
408
];
466
409
final directory = Directory (
467
410
path.join (
0 commit comments