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 {
14321432 RustdocJsonFormatVersion :: Latest
14331433 ) ) ?) ;
14341434
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+
14351452 if target == & default_target {
14361453 continue ;
14371454 }
You can’t perform that action at this time.
0 commit comments