()
| 303 | // ============================================================================= |
| 304 | |
| 305 | async function testPullSyncStart() { |
| 306 | const filePath = path.join(tmpDir, 'pullsync-start.txt'); |
| 307 | fs.writeFileSync(filePath, 'AAABBBCCC'); |
| 308 | |
| 309 | const fh = await open(filePath, 'r'); |
| 310 | try { |
| 311 | const data = textSync(fh.pullSync({ start: 3 })); |
| 312 | assert.strictEqual(data, 'BBBCCC'); |
| 313 | } finally { |
| 314 | await fh.close(); |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | // ============================================================================= |
| 319 | // pullSync() with limit option |
no test coverage detected