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

Function createStateTestCounts

src/utils/xcodebuild-domain-results.ts:177–191  ·  view source on GitHub ↗
(state: XcodebuildRunState)

Source from the content-addressed store, hash-verified

175}
176
177function createStateTestCounts(state: XcodebuildRunState): Counts | undefined {
178 if (!hasTestCounts(state)) {
179 return undefined;
180 }
181
182 const failed = Math.max(state.failedTests, state.testFailures.length);
183 const skipped = state.skippedTests;
184 const passed = Math.max(0, state.completedTests - failed - skipped);
185
186 return {
187 passed,
188 failed,
189 skipped,
190 };
191}
192
193export function createTestDiscoveryFragment(
194 preflight?: TestPreflightResult,

Callers 1

createTestDomainResultFunction · 0.85

Calls 1

hasTestCountsFunction · 0.85

Tested by

no test coverage detected