MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createMockTreeSitterCaptures

Function createMockTreeSitterCaptures

common/src/testing/mocks/tree-sitter.ts:45–49  ·  view source on GitHub ↗
(
  items: Array<{ name: string; text: string }>,
)

Source from the content-addressed store, hash-verified

43}
44
45export function createMockTreeSitterCaptures(
46 items: Array<{ name: string; text: string }>,
47): MockCapture[] {
48 return items.map(({ name, text }) => createMockCapture(name, text))
49}
50
51export function createMockTree(rootNodeText: string = 'mock tree'): MockTree {
52 return {

Callers 1

parse.test.tsFile · 0.90

Calls 1

createMockCaptureFunction · 0.85

Tested by

no test coverage detected