MCPcopy Create free account
hub / github.com/anus-dev/ANUS / readFile

Method readFile

integration-tests/test-helper.ts:324–333  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

322 }
323
324 readFile(fileName: string) {
325 const filePath = join(this.testDir!, fileName);
326 const content = readFileSync(filePath, 'utf-8');
327 if (env.KEEP_OUTPUT === 'true' || env.VERBOSE === 'true') {
328 console.log(`--- FILE: ${filePath} ---`);
329 console.log(content);
330 console.log(`--- END FILE: ${filePath} ---`);
331 }
332 return content;
333 }
334
335 async cleanup() {
336 // Clean up test directory

Callers 15

write_file.test.tsFile · 0.80
replace.test.tsFile · 0.80
performGrepSearchMethod · 0.80
readMemoryFileContentFunction · 0.80
performAddMemoryEntryMethod · 0.80
readAnusMdFilesFunction · 0.80
processSingleFileContentFunction · 0.80
processFlatFunction · 0.80
processImportsFunction · 0.80
readAccountsFunction · 0.80

Calls

no outgoing calls

Tested by 1

readLogFileFunction · 0.64