2023-11-01 10:07:07 +00:00
|
|
|
The tests in this directory are shared by two different test modes, and can be
|
|
|
|
run in multiple different ways:
|
|
|
|
|
|
|
|
- `./x.py test coverage-map` (compiles to LLVM IR and checks coverage mappings)
|
2023-11-02 03:27:22 +00:00
|
|
|
- `./x.py test coverage-run` (runs a test binary and checks its coverage report)
|
|
|
|
- `./x.py test coverage` (runs both `coverage-map` and `coverage-run`)
|
2023-08-14 11:29:41 +00:00
|
|
|
|
|
|
|
## Maintenance note
|
|
|
|
|
|
|
|
These tests can be sensitive to small changes in MIR spans or MIR control flow,
|
|
|
|
especially in HIR-to-MIR lowering or MIR optimizations.
|
|
|
|
|
2023-11-01 10:07:07 +00:00
|
|
|
If you haven't touched the coverage code directly, and the tests still pass in
|
2023-11-02 03:27:22 +00:00
|
|
|
`coverage-run` mode, then it should usually be OK to just re-bless the mappings
|
2023-11-01 10:07:07 +00:00
|
|
|
as necessary with `./x.py test coverage-map --bless`, without worrying too much
|
|
|
|
about the exact changes.
|