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

Function normalizeTestFailureMessage

src/utils/xcodebuild-run-state.ts:60–71  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

58}
59
60function normalizeTestFailureMessage(message: string): string {
61 const lines = message
62 .split('\n')
63 .map((line) => line.trim())
64 .filter((line) => line.length > 0);
65
66 while (lines.at(-1)?.startsWith('// MARK:') === true) {
67 lines.pop();
68 }
69
70 return lines.join('\n').toLowerCase();
71}
72
73function normalizeTestFailureKey(fragment: TestFailureFragment): string {
74 const normalizedLocation = normalizeTestFailureLocation(fragment.location);

Callers 1

normalizeTestFailureKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected