(data, limit, offset)
| 32 | |
| 33 | // Mock output transport with set method |
| 34 | async set (data, limit, offset) { |
| 35 | if (this.options.simulateWriteError) { |
| 36 | if (typeof this.options.simulateWriteError === 'number') { |
| 37 | this.options.simulateWriteError-- |
| 38 | } |
| 39 | throw new Error('Simulated write error') |
| 40 | } |
| 41 | this.outputData.push(...data) |
| 42 | return data.length |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | describe('TransportProcessor', () => { |
no outgoing calls
no test coverage detected