Skip to content

Commit

Permalink
test for doc coverage in build test
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed May 2, 2021
1 parent d6098bc commit 0cde41c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/docbuilder/rustwide_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,10 +728,12 @@ mod tests {
"SELECT
r.rustdoc_status,
r.default_target,
r.doc_targets
r.doc_targets,
c.total_items
FROM
crates as c
INNER JOIN releases AS r ON c.id = r.crate_id
LEFT OUTER JOIN doc_coverage AS co ON r.id = co.release_id
WHERE
c.name = $1 AND
r.version = $2",
Expand All @@ -742,6 +744,7 @@ mod tests {

assert_eq!(row.get::<_, bool>("rustdoc_status"), true);
assert_eq!(row.get::<_, String>("default_target"), default_target);
assert!(row.get::<_, Option<i32>>("total_items").is_some());

let mut targets: Vec<String> = row
.get::<_, Value>("doc_targets")
Expand Down

0 comments on commit 0cde41c

Please sign in to comment.