()
| 27 | // ============================================================================= |
| 28 | |
| 29 | async function testBasicPullSync() { |
| 30 | const filePath = path.join(tmpDir, 'pullsync-basic.txt'); |
| 31 | fs.writeFileSync(filePath, 'hello from sync file read'); |
| 32 | |
| 33 | const fh = await open(filePath, 'r'); |
| 34 | try { |
| 35 | const data = textSync(fh.pullSync()); |
| 36 | assert.strictEqual(data, 'hello from sync file read'); |
| 37 | } finally { |
| 38 | await fh.close(); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // ============================================================================= |
| 43 | // Large file (multi-chunk) |
no test coverage detected