test(windows): mark platform-only coverage branches

This commit is contained in:
imccyu
2026-07-18 12:10:18 +08:00
parent 1d6acc3315
commit 588f4d948d
6 changed files with 10 additions and 0 deletions

View File

@@ -459,6 +459,7 @@ export async function readScopeInstruction(
signal?: AbortSignal,
): Promise<LoadedInstructionFile | undefined> {
const content = await readBounded(file, maxSourceBytes, fileSystem, signal)
/* v8 ignore next -- Windows cannot reproduce a post-probe unreadable file with POSIX mode bits. */
if (content === undefined) return undefined
return {
absolutePath: file.absolutePath,

View File

@@ -437,6 +437,7 @@ export async function reconcileInstructionContext(
) continue
const file = await readScopeInstruction(probedFile, resolved.maxSourceBytes, fileSystem, options.signal)
/* v8 ignore next -- Windows cannot make the probed file unreadable through POSIX mode bits. */
if (file === undefined) continue
const currentDigest = instructionContentSha1(file.content)
const nextVersion: InstructionVersionState = {