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

Function readMockFile

evals/scaffolding.ts:18–25  ·  view source on GitHub ↗
(projectRoot: string, filePath: string)

Source from the content-addressed store, hash-verified

16let _projectRootForMocks: string | undefined
17
18function readMockFile(projectRoot: string, filePath: string): string | null {
19 const fullPath = path.join(projectRoot, filePath)
20 try {
21 return fs.readFileSync(fullPath, 'utf-8')
22 } catch (error) {
23 return null
24 }
25}
26
27export function createFileReadingMock(projectRoot: string) {
28 _projectRootForMocks = projectRoot

Callers 1

getProjectFileContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected