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

Method extend

packages/service-worker/worker/testing/mock.ts:56–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54 }
55
56 extend(): MockFileSystemBuilder {
57 const builder = new MockFileSystemBuilder();
58 Array.from(this.resources.keys()).forEach((path) => {
59 const res = this.resources.get(path)!;
60 if (res.hashThisFile) {
61 builder.addFile(path, res.contents, res.headers);
62 } else {
63 builder.addUnhashedFile(path, res.contents, res.headers);
64 }
65 });
66 return builder;
67 }
68
69 list(): string[] {
70 return Array.from(this.resources.keys());

Callers 3

prefetch_spec.tsFile · 0.45
initializeSwForFunction · 0.45
happy_spec.tsFile · 0.45

Calls 5

addFileMethod · 0.95
addUnhashedFileMethod · 0.95
keysMethod · 0.65
getMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected