Commit b4f953f
test: cover shaded-region patch length-parity fix (codecov patch coverage)
Add two regression tests to TestAddShaded exercising all three code paths the
shading fix changed:
- testShadedPatchEqualLengthCacheBranch: n>20000 hits render()'s cache branch,
then a zoom exercises updateShadings().
- testShadedPatchEqualLengthMidBranch: 5000<n<=20000 hits render()'s mid-size
branch.
A monotonic upper curve + constant fill baseline deterministically makes the
two boundaries downsample to different lengths (minmax tail-anchor), so each
test would have thrown "Vectors must be the same length." on the pre-fix code
and now asserts equal-length patch XData/YData. Covers the 15 lines flagged by
codecov/patch. Lives in TestAddShaded (A-D shard) to stay clear of the flaky
TestTagPerfRegression perf gate in the Q-Z shard.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 20516d3 commit b4f953f
1 file changed
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
104 | 154 | | |
105 | 155 | | |
0 commit comments