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

Function applyFailureDuration

src/utils/xcodebuild-event-parser.ts:218–235  ·  view source on GitHub ↗
(suiteName?: string, testName?: string, durationMs?: number)

Source from the content-addressed store, hash-verified

216 }
217
218 function applyFailureDuration(suiteName?: string, testName?: string, durationMs?: number): void {
219 const key = getFailureKey(suiteName, testName);
220 if (!key || durationMs === undefined) {
221 return;
222 }
223
224 pendingFailureDurations.set(key, durationMs);
225 const pendingFailures = pendingFailureDiagnostics.get(key);
226 if (!pendingFailures) {
227 return;
228 }
229
230 for (const failure of pendingFailures) {
231 emitFailureFragment({ ...failure, durationMs });
232 }
233 pendingFailureDiagnostics.delete(key);
234 pendingFailureDurations.delete(key);
235 }
236
237 function emitTestProgress(): void {
238 if (operation !== 'TEST') {

Callers 1

recordTestCaseResultFunction · 0.85

Calls 3

getFailureKeyFunction · 0.85
emitFailureFragmentFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected