@@ -1724,9 +1724,9 @@ mod tests {
1724
1724
} ) ;
1725
1725
}
1726
1726
1727
+ #[ test_case( "thiserror-impl" , "1.0.26" ) ]
1727
1728
#[ test_case( "scsys-macros" , "0.2.6" ) ]
1728
1729
#[ test_case( "scsys-derive" , "0.2.6" ) ]
1729
- #[ test_case( "thiserror-impl" , "1.0.26" ) ]
1730
1730
#[ ignore]
1731
1731
fn test_proc_macro ( crate_ : & str , version : & str ) {
1732
1732
wrapper ( |env| {
@@ -1748,6 +1748,31 @@ mod tests {
1748
1748
let source_archive = source_archive_path ( crate_, version) ;
1749
1749
assert ! ( storage. exists( & source_archive) ?) ;
1750
1750
1751
+ let path = rustdoc_json_path (
1752
+ crate_,
1753
+ version,
1754
+ HOST_TARGET ,
1755
+ RustdocJsonFormatVersion :: Latest ,
1756
+ ) ;
1757
+ assert ! ( storage. exists( & path) ?) ;
1758
+ assert ! ( storage. get_public_access( & path) ?) ;
1759
+
1760
+ let json_prefix = format ! ( "rustdoc-json/{crate_}/{version}/{}/" , HOST_TARGET ) ;
1761
+ let mut json_files: Vec < _ > = storage
1762
+ . list_prefix ( & json_prefix)
1763
+ . filter_map ( |res| res. ok ( ) )
1764
+ . map ( |f| f. strip_prefix ( & json_prefix) . unwrap ( ) . to_owned ( ) )
1765
+ . collect ( ) ;
1766
+ json_files. sort ( ) ;
1767
+ dbg ! ( & json_files) ;
1768
+ assert_eq ! (
1769
+ json_files,
1770
+ vec![
1771
+ format!( "{crate_}_{version}_{HOST_TARGET}_45.json.zst" ) ,
1772
+ format!( "{crate_}_{version}_{HOST_TARGET}_latest.json.zst" ) ,
1773
+ ]
1774
+ ) ;
1775
+
1751
1776
Ok ( ( ) )
1752
1777
} ) ;
1753
1778
}
0 commit comments