Commit 36b5e21
coverage: enable parallel data files so modular coverage aggregates across files (#574)
The modular coverage check runs each file's tests in its own `coverage run`
subprocess and merges the results with `coverage combine`. Without parallel data
files every subprocess writes the same `.coverage` and overwrites the previous
one, so `combine` finds nothing to merge and the final report reflects only the
subprocess that happened to finish last. Whenever that last file is fully
covered the check reports success even if other files have gaps. Setting
`run.parallel = true` gives each subprocess a uniquely suffixed data file, so
`combine` aggregates them all and the report spans every file.
Correct aggregation surfaced two spots that no test exercised directly and that
the missing aggregation had hidden: the `QuantumReedMullerCode.order`/`size`
getters and the `TrivialGroup.to_ring_array` defunct-alias error. Add direct
assertions for both.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d105640 commit 36b5e21
3 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1017 | 1017 | | |
1018 | 1018 | | |
1019 | 1019 | | |
| 1020 | + | |
1020 | 1021 | | |
1021 | 1022 | | |
1022 | 1023 | | |
| |||
0 commit comments