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

Function pasUnit

__tests__/extraction.test.ts:596–597  ·  view source on GitHub ↗
(c: string)

Source from the content-addressed store, hash-verified

594 expect(doc('b.lua', '--[[ lua block ]]\nfunction lua_b() end', 'lua_b')).toBe('lua block');
595 // Pascal brace and paren-star comments.
596 const pasUnit = (c: string) =>
597 `unit U;\ninterface\n${c}\nprocedure P;\nimplementation\nprocedure P;\nbegin\nend;\nend.\n`;
598 expect(doc('a.pas', pasUnit('{ pascal brace }'), 'P')).toBe('pascal brace');
599 expect(doc('c.pas', pasUnit('(* pascal paren *)'), 'P')).toBe('pascal paren');
600 // C block comment still clean (no regression).

Callers 1

extraction.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected