MCPcopy Index your code
hub / github.com/angular/angular-cli / get

Function get

modules/testing/builder/src/test-utils.ts:104–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 Object.defineProperty(acc, path, {
103 enumerable: true,
104 get() {
105 if (cache) {
106 return cache;
107 }
108 if (!fileNames.includes(path)) {
109 return Promise.reject('No file named ' + path);
110 }
111 cache = firstValueFrom(host.read(join(outputPath, path))).then((content) =>
112 virtualFs.fileBufferToString(content),
113 );
114
115 return cache;
116 },
117 });
118
119 return acc;

Callers

nothing calls this directly

Calls 2

joinFunction · 0.90
readMethod · 0.65

Tested by

no test coverage detected