MCPcopy
hub / github.com/angular/angular / createReporters

Function createReporters

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

Source from the content-addressed store, hash-verified

10
11(function () {
12 function createReporters(ids: any[]) {
13 const r = Injector.create({
14 providers: [
15 ids.map((id) => ({provide: id, useValue: new MockReporter(id)})),
16 MultiReporter.provideWith(ids),
17 ],
18 }).get<MultiReporter>(MultiReporter);
19 return Promise.resolve(r);
20 }
21
22 describe('multi reporter', () => {
23 it('should reportMeasureValues to all', (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…