Skip to content

Commit 42eb6c7

Browse files
committed
test all json files
1 parent e777d4b commit 42eb6c7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/docbuilder/rustwide_builder.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)