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

Function tNode

__tests__/graph.test.ts:520–533  ·  view source on GitHub ↗

Minimal Node stub — the traversal code only reads id/kind/name.

(id: string, kind: Node['kind'] = 'function')

Source from the content-addressed store, hash-verified

518
519/** Minimal Node stub — the traversal code only reads id/kind/name. */
520function tNode(id: string, kind: Node['kind'] = 'function'): Node {
521 return {
522 id,
523 kind,
524 name: id,
525 qualifiedName: id,
526 filePath: `src/${id}.ts`,
527 language: 'typescript',
528 startLine: 1,
529 endLine: 10,
530 startColumn: 0,
531 endColumn: 0,
532 } as unknown as Node;
533}
534
535/** Build a GraphTraverser over a fixed node/edge set, honoring the `kinds` filter. */
536function tGraph(nodes: Node[], edges: Edge[]): GraphTraverser {

Callers 2

graph.test.tsFile · 0.85
seedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected