MCPcopy
hub / github.com/colbymchenry/codegraph / doc

Function doc

__tests__/extraction.test.ts:254–255  ·  view source on GitHub ↗
(file: string, code: string, name: string)

Source from the content-addressed store, hash-verified

252
253 it('cleans comment markers across language styles (#780)', () => {
254 const doc = (file: string, code: string, name: string) =>
255 new Map(extractFromSource(file, code).nodes.map((n) => [n.name, n])).get(name)?.docstring;
256
257 // Rust doc lines (`///`, `//!`) — the trailing slash used to leak through.
258 expect(doc('m.rs', '/// rust doc line\nfn rs_fn() {}', 'rs_fn')).toBe('rust doc line');

Callers 1

extraction.test.tsFile · 0.85

Calls 2

extractFromSourceFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected