about summary refs log tree commit diff
path: root/tests/coverage/assert.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2025-01-12 21:36:07 +1100
committerZalathar <Zalathar@users.noreply.github.com>2025-01-16 22:07:18 +1100
commitf1300c860e6ff4e024f0a347b87f94e36785ce49 (patch)
treebf8a51064c780c9e18fbb2dfb131a983b1fb8f3b /tests/coverage/assert.coverage
parente70112caf86dac4a01739538d3e6f3d163e47642 (diff)
downloadrust-f1300c860e6ff4e024f0a347b87f94e36785ce49.tar.gz
rust-f1300c860e6ff4e024f0a347b87f94e36785ce49.zip
coverage: Completely overhaul counter assignment, using node-flow graphs
Diffstat (limited to 'tests/coverage/assert.coverage')
-rw-r--r--tests/coverage/assert.coverage14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/coverage/assert.coverage b/tests/coverage/assert.coverage
index 22fb6821fba..dfd919660f5 100644
--- a/tests/coverage/assert.coverage
+++ b/tests/coverage/assert.coverage
@@ -9,16 +9,16 @@
    LL|       |
    LL|      1|fn main() -> Result<(), u8> {
    LL|      1|    let mut countdown = 10;
-   LL|     11|    while countdown > 0 {
-   LL|     11|        if countdown == 1 {
+   LL|     10|    while countdown > 0 {
+   LL|      9|        if countdown == 1 {
    LL|      1|            might_fail_assert(3);
-   LL|     10|        } else if countdown < 5 {
+   LL|      8|        } else if countdown < 5 {
    LL|      3|            might_fail_assert(2);
-   LL|      6|        }
-   LL|     10|        countdown -= 1;
+   LL|      5|        }
+   LL|      9|        countdown -= 1;
    LL|       |    }
-   LL|      0|    Ok(())
-   LL|      0|}
+   LL|      1|    Ok(())
+   LL|      1|}
    LL|       |
    LL|       |// Notes:
    LL|       |//   1. Compare this program and its coverage results to those of the very similar test