Repository navigation
Commit 38bc7f1
test(capture-kit): encode solid test PNGs unfiltered to stay inside the unit budget
The 375x812-vs-1080x2340 comparison spent ~0.8s of its wall clock encoding the
capture with pngjs' default scanline filters, which for a solid fill buy no
compression and only burn CPU under coverage instrumentation. On the Coverage
lane it crossed the 2x slow-test enforce line and vitest's 5s timeout (runs
39928270661, 39947965910). filterType 0 is a lossless choice the decoder
inverts, so every compared pixel is identical.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 7a1bc78 commit 38bc7f1
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments