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

Function tNode

__tests__/graph.test.ts:534–547  ·  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

532
533/** Minimal Node stub — the traversal code only reads id/kind/name. */
534function tNode(id: string, kind: Node['kind'] = 'function'): Node {
535 return {
536 id,
537 kind,
538 name: id,
539 qualifiedName: id,
540 filePath: `src/${id}.ts`,
541 language: 'typescript',
542 startLine: 1,
543 endLine: 10,
544 startColumn: 0,
545 endColumn: 0,
546 } as unknown as Node;
547}
548
549/** Build a GraphTraverser over a fixed node/edge set, honoring the `kinds` filter. */
550function 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