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

Function testCaseSortKey

src/snapshot-tests/json-normalize.ts:315–318  ·  view source on GitHub ↗
(item: unknown)

Source from the content-addressed store, hash-verified

313}
314
315function testCaseSortKey(item: unknown): string {
316 const record = item as { suite?: string; test?: string };
317 return `${record.suite ?? ''}|${record.test ?? ''}`;
318}
319
320function normalizeTestCases(items: unknown[]): unknown[] {
321 const sorted = [...items].sort((a, b) => testCaseSortKey(a).localeCompare(testCaseSortKey(b)));

Callers 1

normalizeTestCasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected