(rel: string, content: string)
| 381 | it('is read from the file as a sync leaves it', async () => { |
| 382 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-go-ref-qualifier-sync-')); |
| 383 | const write = (rel: string, content: string): void => { |
| 384 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 385 | fs.writeFileSync(path.join(dir, rel), content); |
| 386 | }; |
| 387 | write('go.mod', 'module example.com/app\n\ngo 1.22\n'); |
| 388 | write('auth/jwt.go', files['auth/jwt.go']!); |
| 389 | // The same lines either way: a stale reading would still see the local. |
no test coverage detected