MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / parseIndex

Function parseIndex

e2e/scripts/ci-shard.ts:74–78  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

72 CI_TARGETS.find((target) => target === input);
73
74const parseIndex = (input: string): number | undefined => {
75 if (!/^\d+$/.test(input)) return undefined;
76 const value = Number(input);
77 return Number.isSafeInteger(value) && value > 0 ? value : undefined;
78};
79
80const discoverTestFilesInDirectory = async (
81 e2eRoot: string,

Callers 1

parseCiShardRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected