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

Function countParentheses

src/utils/swift-test-discovery.ts:97–107  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

95}
96
97function countParentheses(line: string): number {
98 let delta = 0;
99 for (const character of line) {
100 if (character === '(') {
101 delta += 1;
102 } else if (character === ')') {
103 delta -= 1;
104 }
105 }
106 return delta;
107}
108
109function collectXCTestTypes(lines: string[]): Set<string> {
110 const xctestTypes = new Set<string>();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected