about summary refs log tree commit diff
path: root/tests/coverage/coroutine.cov-map
AgeCommit message (Collapse)AuthorLines
2024-05-29Manually run `x fmt` on all source files in `tests/coverage/`Zalathar-4/+4
Currently we can't automatically enforce formatting on tests (see #125637), but we can at least keep things relatively tidy by occasionally running the formatter manually. This was done by temporarily commenting out the `"/tests/"` exclusion in `rustfmt.toml`, and then running `x fmt tests/coverage` and `x test coverage --bless`.
2024-05-14coverage: Simplify counter expressions using simple algebraZalathar-5/+3
Some of these cases currently don't occur in practice, but are included for completeness, and to avoid having to add them later as branch coverage and MC/DC coverage start building more complex expressions.
2024-04-24Error on using `yield` without also using `#[coroutine]` on the closureOli Scherer-2/+2
And suggest adding the `#[coroutine]` to the closure
2024-01-18coverage: Format all remaining testsZalathar-8/+8
These tests can simply be reformatted as normal, because the resulting changes are unimportant.
2023-11-25coverage: Simplify building coverage expressions based on sumsZalathar-4/+4
In some cases we need to prepare a coverage expression that is the sum of an arbitrary number of other terms. This patch simplifies the code paths that build those sums. This causes some churn in the mappings, because the previous code was building its sums in a somewhat idiosyncratic order.
2023-11-07coverage: Migrate `tests/coverage-map` into `tests/coverage`Zalathar-0/+53