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

Function anchor

__tests__/query-paths.test.ts:345–345  ·  view source on GitHub ↗
(q: string)

Source from the content-addressed store, hash-verified

343
344 it('accepts the other spellings agents write', () => {
345 const anchor = (q: string) => extractQueryPaths(q, INDEX).lineAnchors;
346 expect(anchor(`lines 900 to 1003 of ${CHAT}`)).toEqual([{ file: CHAT, start: 900, end: 1003 }]);
347 expect(anchor(`L900-L1003 in ${CHAT}`)).toEqual([{ file: CHAT, start: 900, end: 1003 }]);
348 expect(anchor(`${CHAT} line 42`)).toEqual([{ file: CHAT, start: 42, end: 42 }]);

Callers 1

Calls 1

extractQueryPathsFunction · 0.90

Tested by

no test coverage detected