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

Function isRunStateFragment

src/utils/xcodebuild-pipeline.ts:54–66  ·  view source on GitHub ↗
(fragment: DomainFragment)

Source from the content-addressed store, hash-verified

52type RunStateEvent = Parameters<XcodebuildRunStateHandle['push']>[0];
53
54function isRunStateFragment(fragment: DomainFragment): fragment is RunStateEvent {
55 switch (fragment.fragment) {
56 case 'build-stage':
57 case 'compiler-diagnostic':
58 case 'test-discovery':
59 case 'test-progress':
60 case 'test-failure':
61 case 'test-case-result':
62 return true;
63 default:
64 return false;
65 }
66}
67
68function buildHeaderParams(
69 params: Record<string, unknown>,

Callers 2

createXcodebuildPipelineFunction · 0.85
emitFragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected