MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / expectRef

Function expectRef

__tests__/kernel-swift-parity.test.ts:161–162  ·  view source on GitHub ↗
(referenceName: string, referenceKind: string, where: { line: number; column: number })

Source from the content-addressed store, hash-verified

159 return { line: i + 1, column: lines[i]!.indexOf(token, lines[i]!.indexOf(text)) };
160 };
161 const expectRef = (referenceName: string, referenceKind: string, where: { line: number; column: number }) =>
162 expect(refs).toContainEqual(expect.objectContaining({ referenceName, referenceKind, ...where }));
163
164 expectRef('Message2', 'calls', at('let msg2 = try! Message2(data: data!)', 'Message2'));
165 expectRef('Realm', 'calls', at('try! Realm()', 'Realm'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected