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

Function createMockTreeSitterQuery

common/src/testing/mocks/tree-sitter.ts:69–78  ·  view source on GitHub ↗
(
  options: CreateMockQueryOptions = {},
)

Source from the content-addressed store, hash-verified

67}
68
69export function createMockTreeSitterQuery(
70 options: CreateMockQueryOptions = {},
71): MockQuery {
72 const { captures = [], capturesImpl } = options
73 const capturesFn = capturesImpl ?? (() => captures)
74
75 return {
76 captures: mock(capturesFn),
77 }
78}
79
80export interface CreateMockLanguageConfigOptions {
81 extensions?: string[]

Callers 2

parse.test.tsFile · 0.90
createMockLanguageConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected