MCPcopy Index your code
hub / github.com/angular/angular / readResource

Method readResource

packages/compiler-cli/test/mocks.ts:43–49  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

41 }
42
43 readResource(fileName: string): Promise<string> {
44 const result = this.readFile(fileName);
45 if (result == null) {
46 return Promise.reject(new Error(`Resource not found: ${fileName}`));
47 }
48 return Promise.resolve(result);
49 }
50
51 writeFile(fileName: string, data: string): void {
52 const parts = fileName.split('/');

Callers

nothing calls this directly

Calls 3

readFileMethod · 0.95
resolveMethod · 0.65
rejectMethod · 0.45

Tested by

no test coverage detected