()
| 70 | } |
| 71 | |
| 72 | async function validateZeroByteLiar() { |
| 73 | const originalFStat = fsBinding.fstat; |
| 74 | fsBinding.fstat = common.mustCall( |
| 75 | async () => (/* stat fields */ [0, 1, 2, 3, 4, 5, 6, 7, 0 /* size */]) |
| 76 | ); |
| 77 | const readBuffer = await readFile(fn); |
| 78 | assert.strictEqual(readBuffer.toString(), largeBuffer.toString()); |
| 79 | fsBinding.fstat = originalFStat; |
| 80 | } |
| 81 | |
| 82 | (async () => { |
| 83 | await createLargeFile(); |
no test coverage detected