Files
sdk/runtime/vm
Liam Appelbe 7b422f440d [vm] Fix branch coverage finally edge cases
StreamingFlowGraphBuilder::BuildTryFinally talks about 5 different
cases where a finally block needs to be executed:
1) break/continue in a loop
2) continue in a switch
3) return statement
4) try body is an open fragment
5) exception is thrown inside try

StreamingFlowGraphBuilder::BuildTryFinally itself only handles cases
4 and 5. So when we added branch coverage to the finally inside
BuildTryFinally, we missed cases 1, 2, and 3, which go through
TranslateFinallyFinalizers instead.

Bug: https://github.com/dart-lang/tools/issues/2241
Change-Id: I02b38a18452be709d5fabd9945d6570a2f1b5120
Fixes: https://github.com/dart-lang/tools/issues/2241
TEST=SourceReport_BranchCoverage_finallyEdgeCases
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/463220
Commit-Queue: Liam Appelbe <liama@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
2025-11-24 15:59:56 -08:00
..
2024-07-23 10:43:43 +00:00
2024-04-17 19:14:41 +00:00
2023-03-06 22:06:59 +00:00
2025-05-05 15:21:13 -07:00
2023-09-12 16:22:19 +00:00
2023-06-23 20:35:00 +00:00
2024-04-17 19:14:41 +00:00
2024-03-20 20:08:13 +00:00
2025-10-20 10:49:20 -07:00
2025-11-21 05:34:55 -08:00
2025-02-11 20:09:11 -08:00
2025-11-04 15:14:13 -08:00
2022-12-29 10:18:02 +00:00
2025-11-21 05:34:55 -08:00
2024-04-17 19:14:41 +00:00
2024-03-20 20:08:13 +00:00
2025-06-18 06:09:14 -07:00