MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / makeContext

Function makeContext

__tests__/drupal.test.ts:21–37  ·  view source on GitHub ↗
(
  overrides: Partial<ResolutionContext> = {},
)

Source from the content-addressed store, hash-verified

19// ---------------------------------------------------------------------------
20
21function makeContext(
22 overrides: Partial<ResolutionContext> = {},
23): ResolutionContext {
24 return {
25 getNodesInFile: () => [],
26 getNodesByName: () => [],
27 getNodesByQualifiedName: () => [],
28 getNodesByKind: () => [],
29 fileExists: () => false,
30 readFile: () => null,
31 getProjectRoot: () => '/project',
32 getAllFiles: () => [],
33 getNodesByLowerName: () => [],
34 getImportMappings: () => [],
35 ...overrides,
36 };
37}
38
39// ---------------------------------------------------------------------------
40// detect()

Callers 1

drupal.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected