Skip to content

Commit 79e5717

Browse files
committed
test all json files
1 parent e777d4b commit 79e5717

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/docbuilder/rustwide_builder.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,13 @@ mod tests {
14321432
RustdocJsonFormatVersion::Latest
14331433
))?);
14341434

1435+
let json_files: Vec<_> = storage
1436+
.list_prefix(&format!("rustdoc-json/{crate_}/{version}/{target}/"))
1437+
.filter_map(|res| res.ok())
1438+
.collect();
1439+
dbg!(&json_files);
1440+
assert_eq!(json_files, vec!["1".to_string(), "2".to_string()]);
1441+
14351442
if target == &default_target {
14361443
continue;
14371444
}

0 commit comments

Comments
 (0)