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

Function triggerAt

__tests__/branch-guards.test.ts:438–442  ·  view source on GitHub ↗
(src: string, needle: string, language: 'tsx' | 'typescript' | 'swift' = 'tsx')

Source from the content-addressed store, hash-verified

436// =============================================================================
437
438async function triggerAt(src: string, needle: string, language: 'tsx' | 'typescript' | 'swift' = 'tsx') {
439 const line = lineOf(src, needle);
440 const column = src.split('\n')[line - 1]!.indexOf(needle);
441 return triggerInSource(src, language, line, column);
442}
443
444describe('triggers', () => {
445 const login = `

Callers 1

Calls 2

triggerInSourceFunction · 0.90
lineOfFunction · 0.70

Tested by

no test coverage detected