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

Method hash

packages/service-worker/config/testing/mock.ts:27–29  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

25 }
26
27 async hash(path: string): Promise<string> {
28 return sha1(this.files.get(path)!);
29 }
30
31 async write(path: string, contents: string): Promise<void> {
32 this.files.set(path, contents);

Callers

nothing calls this directly

Calls 2

sha1Function · 0.90
getMethod · 0.65

Tested by

no test coverage detected