(rel: string, content: string)
| 463 | it('is read from the file as a sync leaves it', async () => { |
| 464 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-go-stdlib-locals-sync-')); |
| 465 | const write = (rel: string, content: string): void => { |
| 466 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 467 | fs.writeFileSync(path.join(dir, rel), content); |
| 468 | }; |
| 469 | write('go.mod', 'module example.com/app\n\ngo 1.22\n'); |
| 470 | write('gin/context.go', files['gin/context.go']!); |
| 471 | // The call keeps its line and column: a stale reading would still see the parameter. |
no test coverage detected