File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -1432,6 +1432,23 @@ mod tests {
1432
1432
RustdocJsonFormatVersion :: Latest
1433
1433
) ) ?) ;
1434
1434
1435
+ let json_prefix = format ! ( "rustdoc-json/{crate_}/{version}/{target}/" ) ;
1436
+ let json_files: Vec < _ > = storage
1437
+ . list_prefix ( & json_prefix)
1438
+ . filter_map ( |res| res. ok ( ) )
1439
+ . collect ( ) ;
1440
+ dbg ! ( & json_files) ;
1441
+ assert_eq ! (
1442
+ json_files
1443
+ . into_iter( )
1444
+ . map( |f| f. strip_prefix( & json_prefix) . unwrap( ) . to_owned( ) )
1445
+ . collect:: <Vec <_>>( ) ,
1446
+ vec![
1447
+ "empty-library_1.0.0_i686-pc-windows-msvc_45.json.zst" . to_string( ) ,
1448
+ "empty-library_1.0.0_i686-pc-windows-msvc_latest.json.zst" . to_string( ) ,
1449
+ ]
1450
+ ) ;
1451
+
1435
1452
if target == & default_target {
1436
1453
continue ;
1437
1454
}
You can’t perform that action at this time.
0 commit comments