MCPcopy
hub / github.com/elasticsearch-dump/elasticsearch-dump / set

Method set

test/processor.tests.js:34–43  ·  view source on GitHub ↗
(data, limit, offset)

Source from the content-addressed store, hash-verified

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
46describe('TransportProcessor', () => {

Callers 3

csv.test.jsFile · 0.45
s3.test.jsFile · 0.45
file.test.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected