()
| 180 | // ============================================================================= |
| 181 | |
| 182 | function testEarlyExit() { |
| 183 | const input = 'y'.repeat(100_000); |
| 184 | const compressed = pullSync(fromSync(input), compressGzipSync()); |
| 185 | |
| 186 | // eslint-disable-next-line no-unused-vars |
| 187 | for (const batch of compressed) { |
| 188 | break; // Early exit - should trigger finally block cleanup |
| 189 | } |
| 190 | // If we get here without crashing, cleanup worked |
| 191 | } |
| 192 | |
| 193 | // ============================================================================= |
| 194 | // Empty input |
no test coverage detected