MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / parseTotalsLine

Function parseTotalsLine

src/utils/xcodebuild-line-parsers.ts:108–116  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

106}
107
108export function parseTotalsLine(line: string): ParsedTotals | null {
109 const match = line.match(
110 /^Executed (\d+) tests?, with (\d+) failures?(?: \(\d+ unexpected\))? in (.+)$/u,
111 );
112 if (!match) {
113 return null;
114 }
115 return { executed: Number(match[1]), failed: Number(match[2]), displayDurationText: match[3] };
116}
117
118export function parseFailureDiagnostic(line: string): ParsedFailureDiagnostic | null {
119 const match = line.match(/^(.*?):(\d+): error: -\[(.+?)\s+(.+?)\] : (.+)$/u);

Callers 1

processLineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected