about summary refs log tree commit diff
path: root/tests/run-coverage
AgeCommit message (Collapse)AuthorLines
2023-11-07coverage: Migrate `tests/run-coverage` into `tests/coverage`Zalathar-5849/+0
2023-11-07coverage: Copy all remaining coverage-map tests into run-coverageZalathar-0/+308
2023-11-07coverage: Use `-Copt-level=2` by default in run-coverage testsZalathar-2/+4
This is a step towards being able to unify the two coverage test directories. There are two tests that require adjustment: - `overflow.rs` requires an explicit `-Coverflow-checks=yes` - `sort_groups.rs` is sensitive to provably unused instantiations
2023-10-28coverage: Consistently remove unused counter IDs from expressions/mappingsZalathar-12/+13
2023-10-28coverage: Regression test for #17012 (bad counter IDs in mappings)Zalathar-0/+134
2023-10-21coverage: Handle fn signature spans more consistently near `?`Zalathar-5/+5
2023-10-21coverage: Add a test showing the inconsistent handling of function signaturesZalathar-0/+86
2023-10-20Replace all uses of `generator` in markdown documentation with `coroutine`Oli Scherer-12/+12
2023-10-20Rename lots of files that had `generator` in their nameOli Scherer-0/+0
2023-10-20s/generator/coroutine/Oli Scherer-20/+20
2023-10-20s/Generator/Coroutine/Oli Scherer-8/+8
2023-10-01coverage: Regression test for functions with unreachable bodiesZalathar-0/+75
2023-09-18coverage: Regression test for inconsistent handling of closure spansZalathar-0/+97
2023-09-18coverage: Fix an unstable-sort inconsistency in coverage spansZalathar-7/+7
This code was calling `sort_unstable_by`, but failed to impose a total order on the initial spans. That resulted in unpredictable handling of closure spans, producing inconsistencies in the coverage maps and in user-visible coverage reports. This patch fixes the problem by always sorting closure spans before otherwise-identical non-closure spans, and also switches to a stable sort in case the ordering is still not total.
2023-09-08Fix up run-coverage and coverage-map/status-quo testsAndy Caldwell-30/+30
2023-09-01update tests that are ignored by debugDing Xiang Fei-1/+1
2023-08-26Various trivial formatting fixes in `run-coverage` testsZalathar-92/+48
These changes were made by manually running `rustfmt` on all of the test files, and then manually undoing all cases where the original formatting appeared to have been deliberate. `rustfmt +nightly --config-path=/dev/null --edition=2021 tests/run-coverage*/**/*.rs`
2023-08-26Tidy up some awkwardly-placed comments in testsZalathar-8/+24
Prior to #114875, these tests were very sensitive to lines being added/removed, so the migration to `run-coverage` in #112300 tried hard to avoid disturbing the existing line numbers. That resulted in some awkward reshuffling when certain comments/directives needed to be added or moved. Now that we don't have to worry about preserving line numbers, we can rearrange those comments into a more conventional layout.
2023-08-26Resolve all warnings in `run-coverage` testsZalathar-20/+22
When one of these tests fails, any compiler warnings will be printed to the console, which makes it harder to track down the actual reason for failure. (The outstanding warnings were found by temporarily adding `-Dwarnings` to the compiler arguments for `RunCoverage` in `src/tools/compiletest/src/runtest.rs`.)
2023-08-17coverage: Anonymize line numbers in `run-coverage` test snapshotsZalathar-2547/+2547
This makes the test snapshots less sensitive to lines being added/removed.
2023-07-14refactor(rustc_middle): Substs -> GenericArgMahdi Dibaiee-2/+2
2023-07-06Re-enable some coverage tests on LinuxZalathar-8/+8
2023-06-28Re-bless the newly-migrated testsZalathar-12/+68
2023-06-28Migrate the remaining `run-make/coverage-reports` tests over to `run-coverage`Zalathar-0/+599
To make it easier to verify that the output snapshots have been migrated faithfully, this change adds some temporary helper code that lets us avoid having to completely re-bless the existing snapshots. A later change in this PR will then re-bless the tests and remove the temporary helper code.
2023-06-28Migrate most of the existing coverage tests over to `run-coverage`Zalathar-0/+4517