(t, lines)
| 28 | test('"lines: true" can be above "maxBuffer", fd-specific', testAboveMaxBuffer, {stdout: true}); |
| 29 | |
| 30 | const testMaxBufferUnit = async (t, lines) => { |
| 31 | const {isMaxBuffer, shortMessage, stdout} = await t.throwsAsync(execa('noop-repeat.js', ['1', '...\n'], {lines, maxBuffer})); |
| 32 | t.true(isMaxBuffer); |
| 33 | assertErrorMessage(t, shortMessage, {length: maxBuffer, unit: 'lines'}); |
| 34 | t.deepEqual(stdout, ['...', '...']); |
| 35 | }; |
| 36 | |
| 37 | test('"maxBuffer" is measured in lines with "lines: true"', testMaxBufferUnit, true); |
| 38 | test('"maxBuffer" is measured in lines with "lines: true", fd-specific', testMaxBufferUnit, {stdout: true}); |
nothing calls this directly
no test coverage detected