()
| 44 | // ============================================================================= |
| 45 | |
| 46 | async function testLargeFile() { |
| 47 | const filePath = path.join(tmpDir, 'pullsync-large.txt'); |
| 48 | const input = 'sync large data test. '.repeat(10000); |
| 49 | fs.writeFileSync(filePath, input); |
| 50 | |
| 51 | const fh = await open(filePath, 'r'); |
| 52 | try { |
| 53 | const data = textSync(fh.pullSync()); |
| 54 | assert.strictEqual(data, input); |
| 55 | } finally { |
| 56 | await fh.close(); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // ============================================================================= |
| 61 | // Binary data round-trip |
no test coverage detected