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

Function runToolLogic

src/test-utils/test-helpers.ts:85–92  ·  view source on GitHub ↗
(logic: () => Promise<T>)

Source from the content-addressed store, hash-verified

83}
84
85export async function runToolLogic<T>(logic: () => Promise<T>): Promise<{
86 response: T;
87 result: MockToolHandlerResult;
88}> {
89 const { result, run } = createMockToolHandlerContext();
90 const response = await run(logic);
91 return { response, result };
92}
93
94export interface RunLogicResult {
95 content: Array<{ type: string; text?: string; data?: string; mimeType?: string }>;

Callers 15

runSwiftPackageTestLogicFunction · 0.90
runSwiftPackageRunLogicFunction · 0.90
runTestMacosLogicFunction · 0.90
runBuildRunMacOSLogicFunction · 0.90
runBuildMacOSFunction · 0.90
runTestDeviceLogicFunction · 0.90
runBuildRunDeviceLogicFunction · 0.90

Calls 2

runFunction · 0.85

Tested by 10

runSwiftPackageTestLogicFunction · 0.72
runSwiftPackageRunLogicFunction · 0.72
runTestMacosLogicFunction · 0.72
runBuildRunMacOSLogicFunction · 0.72
runBuildMacOSFunction · 0.72
runTestDeviceLogicFunction · 0.72
runBuildRunDeviceLogicFunction · 0.72
runBuildRunSimLogicFunction · 0.72
runBuildSimLogicFunction · 0.72