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

Function reached

__tests__/python-declared-import-roots.test.ts:193–195  ·  view source on GitHub ↗

Both tests of a service: through `import mod` and through `from mod import check`.

(cg: CodeGraph | undefined, name: string)

Source from the content-addressed store, hash-verified

191
192 /** Both tests of a service: through `import mod` and through `from mod import check`. */
193 function reached(cg: CodeGraph | undefined, name: string): string[][] {
194 return [calls(cg, `test_${name}_attr`), calls(cg, `test_${name}_name`)];
195 }
196
197 describe('the config at the top of the repo', () => {
198 it('links a test to the module under the declared root, by `import` and by `from … import`', () => {

Calls 1

callsFunction · 0.70

Tested by

no test coverage detected