(message: string)
| 58 | } |
| 59 | |
| 60 | function 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 | |
| 73 | function normalizeTestFailureKey(fragment: TestFailureFragment): string { |
| 74 | const normalizedLocation = normalizeTestFailureLocation(fragment.location); |
no outgoing calls
no test coverage detected