()
| 79 | |
| 80 | const parseEffectSingle = () => effectSingleParser.push(parserPayload).length |
| 81 | const parseEffectChunked = () => { |
| 82 | let count = 0 |
| 83 | for (const chunk of parserChunks) { |
| 84 | count += effectChunkedParser.push(chunk).length |
| 85 | } |
| 86 | return count |
| 87 | } |
| 88 | assert.equal(parseEffectSingle(), rowsPerParserRun) |
| 89 | assert.equal(parseEffectChunked(), rowsPerParserRun) |
| 90 |