MCPcopy Index your code
hub / github.com/code-pushup/cli / readFile

Function readFile

packages/utils/src/lib/wizard/virtual-fs.unit.test.ts:23–29  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

21 unlinked,
22 dirs,
23 async readFile(path: string) {
24 const content = store.get(toUnixPath(path));
25 if (content == null) {
26 throw new Error(`ENOENT: no such file or directory, open '${path}'`);
27 }
28 return content;
29 },
30 async writeFile(path: string, content: string) {
31 if (options.failOnWrite === toUnixPath(path)) {
32 throw new Error(`EACCES: permission denied, open '${path}'`);

Callers 15

readTextFileFunction · 0.85
wizard.int.test.tsFile · 0.85
compareProjectsInBulkFunction · 0.85
saveReportFilesFunction · 0.85
findNewIssuesFunction · 0.85
commentOnPRFunction · 0.85

Calls 1

toUnixPathFunction · 0.85

Tested by

no test coverage detected