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

Function testDeviceLogic

src/mcp/tools/device/test_device.ts:153–167  ·  view source on GitHub ↗
(
  params: TestDeviceParams,
  executor: CommandExecutor = getDefaultCommandExecutor(),
  fileSystemExecutor: FileSystemExecutor = getDefaultFileSystemExecutor(),
)

Source from the content-addressed store, hash-verified

151}
152
153export async function testDeviceLogic(
154 params: TestDeviceParams,
155 executor: CommandExecutor = getDefaultCommandExecutor(),
156 fileSystemExecutor: FileSystemExecutor = getDefaultFileSystemExecutor(),
157): Promise<void> {
158 const ctx = getHandlerContext();
159 const prepared = await prepareTestDeviceExecution(params, fileSystemExecutor);
160
161 ctx.emit(createBuildInvocationFragment('test-result', 'TEST', prepared.invocationRequest));
162 const executionContext = createStreamingExecutionContext(ctx);
163 const executeTestDevice = createTestDeviceExecutor(executor, fileSystemExecutor, prepared);
164 const result = await executeTestDevice(params, executionContext);
165
166 setXcodebuildStructuredOutput(ctx, 'test-result', result);
167}
168
169export const schema = getSessionAwareToolSchemaShape({
170 sessionAware: publicSchemaObject,

Callers 2

runTestDeviceLogicFunction · 0.90
test_device.tsFile · 0.85

Calls 9

getHandlerContextFunction · 0.90
createTestDeviceExecutorFunction · 0.85
emitMethod · 0.80

Tested by 1

runTestDeviceLogicFunction · 0.72