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

Function hasSection

__tests__/explore-path-pinning.test.ts:37–38  ·  view source on GitHub ↗
(response: string, file: string)

Source from the content-addressed store, hash-verified

35
36/** The response renders a source section for `file`. */
37const hasSection = (response: string, file: string): boolean =>
38 response.includes('**`' + file + '`');
39
40beforeAll(async () => {
41 dir = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-path-pin-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected