createMockIndexedGraph() — mcp Function Reference
Architecture documentation for the createMockIndexedGraph() function in graph-cache.test.ts from the mcp codebase.
Entity Profile
Dependency Diagram
graph TD 8432205c_18ff_6b08_21e9_a98724f066e7["createMockIndexedGraph()"] 919aa576_8ce8_a725_8ee0_92bce17724fa["graph-cache.test.ts"] 8432205c_18ff_6b08_21e9_a98724f066e7 -->|defined in| 919aa576_8ce8_a725_8ee0_92bce17724fa style 8432205c_18ff_6b08_21e9_a98724f066e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/cache/graph-cache.test.ts lines 414–438
function createMockIndexedGraph(cacheKey: string, nodeCount: number): any {
return {
raw: { graph: { nodes: [], relationships: [] } },
nodeById: new Map(),
labelIndex: new Map(),
pathIndex: new Map(),
dirIndex: new Map(),
nameIndex: new Map(),
callAdj: new Map(),
importAdj: new Map(),
domainIndex: new Map(),
summary: {
filesProcessed: 0,
classes: 0,
functions: 0,
types: 0,
domains: 0,
primaryLanguage: 'typescript',
nodeCount,
relationshipCount: 0,
},
cachedAt: new Date().toISOString(),
cacheKey,
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createMockIndexedGraph() do?
createMockIndexedGraph() is a function in the mcp codebase, defined in src/cache/graph-cache.test.ts.
Where is createMockIndexedGraph() defined?
createMockIndexedGraph() is defined in src/cache/graph-cache.test.ts at line 414.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free