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

Function createMockCapture

common/src/testing/mocks/tree-sitter.ts:38–43  ·  view source on GitHub ↗
(name: string, text: string)

Source from the content-addressed store, hash-verified

36}
37
38export function createMockCapture(name: string, text: string): MockCapture {
39 return {
40 name,
41 node: { text },
42 }
43}
44
45export function createMockTreeSitterCaptures(
46 items: Array<{ name: string; text: string }>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected