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

Function createBasicDiagnostics

src/utils/xcodebuild-domain-results.ts:124–146  ·  view source on GitHub ↗
(
  state: XcodebuildRunState,
  didError: boolean,
  fallbackErrorMessages?: readonly string[],
)

Source from the content-addressed store, hash-verified

122}
123
124function createBasicDiagnostics(
125 state: XcodebuildRunState,
126 didError: boolean,
127 fallbackErrorMessages?: readonly string[],
128): BasicDiagnostics {
129 const warnings = state.warnings.map((warning) => ({
130 message: warning.message,
131 location: warning.location,
132 }));
133
134 const errors = didError
135 ? state.errors.map((error) => ({
136 message: error.message,
137 location: error.location,
138 }))
139 : [];
140
141 const rawOutput = didError
142 ? collectDiagnosticRawOutput(fallbackErrorMessages, errors)
143 : undefined;
144
145 return { warnings, errors, ...(rawOutput ? { rawOutput } : {}) };
146}
147
148function createTestDiagnostics(
149 state: XcodebuildRunState,

Callers 3

createTestDiagnosticsFunction · 0.70
createBuildDomainResultFunction · 0.70

Calls 1

Tested by

no test coverage detected