MCPcopy
hub / github.com/CodebuffAI/codebuff / range

Function range

cli/src/hooks/__tests__/use-suggestion-engine.test.ts:32–37  ·  view source on GitHub ↗
(start: number, end?: number)

Source from the content-addressed store, hash-verified

30 }
31
32 const range = (start: number, end?: number) => {
33 if (end === undefined) {
34 return Array.from({ length: start }, (_, i) => i)
35 }
36 return Array.from({ length: end - start }, (_, i) => start + i)
37 }
38
39 // Check if query contains slashes for path-segment matching
40 const querySegments = normalized.split('/')

Callers 1

filterFileMatchesFunction · 0.70

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected