MCPcopy
hub / github.com/angular/angular / createMetric

Function createMetric

packages/benchpress/test/metric/multi_metric_spec.ts:12–20  ·  view source on GitHub ↗
(ids: any[])

Source from the content-addressed store, hash-verified

10
11(function () {
12 function createMetric(ids: any[]) {
13 const m = Injector.create({
14 providers: [
15 ids.map((id) => ({provide: id, useValue: new MockMetric(id)})),
16 MultiMetric.provideWith(ids),
17 ],
18 }).get<MultiMetric>(MultiMetric);
19 return Promise.resolve(m);
20 }
21
22 describe('multi metric', () => {
23 it('should merge descriptions', (done) => {

Callers 1

Calls 5

mapMethod · 0.80
getMethod · 0.65
createMethod · 0.65
resolveMethod · 0.65
provideWithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…