MCPcopy Create free account
hub / github.com/angular/angular / named

Function named

packages/compiler-cli/preprocessor/test/ngp_spec.ts:389–389  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

387 const ngpPid = events.find((e) => e.name === 'process_name' && e.args?.['name'] === 'ngp')!.pid;
388 const slices = events.filter((e) => e.pid === ngpPid && e.ph === 'X' && e.tid === 1);
389 const named = (name: string) => slices.filter((e) => e.name === `ngp.${name}`);
390 for (const name of ['Startup', 'SpawnSidecar', 'InitializeRpc', 'TakePerf', 'Close']) {
391 expect(named(name).length).withContext(name).toBe(1);
392 }

Callers 1

ngp_spec.tsFile · 0.85

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected