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

Function testClosureFunction

packages/zone.js/test/closure/zone.closure.ts:8–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 * found in the LICENSE file at https://angular.dev/license
7 */
8const testClosureFunction = () => {
9 const logs: string[] = [];
10 // call all Zone exposed functions
11 const testZoneSpec: ZoneSpec = {
12 name: 'closure',
13 properties: {},
14 onFork: (
15 parentZoneDelegate: ZoneDelegate,
16 currentZone: Zone,
17 targetZone: Zone,
18 zoneSpec: ZoneSpec,
19 ) => {
20 return parentZoneDelegate.fork(targetZone, zoneSpec);
21 },
22
23 onIntercept: (
24 parentZoneDelegate: ZoneDelegate,
25 currentZone: Zone,
26 targetZone: Zone,
27 delegate: Function,
28 source: string,
29 ) => {
30 return parentZoneDelegate.intercept(targetZone, delegate, source);
31 },
32
33 onInvoke: function (
34 parentZoneDelegate: ZoneDelegate,
35 currentZone: Zone,
36 targetZone: Zone,
37 delegate: Function,
38 applyThis?: any,
39 applyArgs?: any[],
40 source?: string,
41 ) {
42 return parentZoneDelegate.invoke(targetZone, delegate, applyThis, applyArgs, source);
43 },
44
45 onHandleError: function (
46 parentZoneDelegate: ZoneDelegate,
47 currentZone: Zone,
48 targetZone: Zone,
49 error: any,
50 ) {
51 return parentZoneDelegate.handleError(targetZone, error);
52 },
53
54 onScheduleTask: function (
55 parentZoneDelegate: ZoneDelegate,
56 currentZone: Zone,
57 targetZone: Zone,
58 task: Task,
59 ) {
60 return parentZoneDelegate.scheduleTask(targetZone, task);
61 },
62
63 onInvokeTask: function (
64 parentZoneDelegate: ZoneDelegate,
65 currentZone: Zone,

Callers 1

zone.closure.tsFile · 0.85

Calls 15

__symbol__Method · 0.80
forkMethod · 0.65
interceptMethod · 0.65
invokeMethod · 0.65
handleErrorMethod · 0.65
scheduleTaskMethod · 0.65
invokeTaskMethod · 0.65
cancelTaskMethod · 0.65
hasTaskMethod · 0.65
__load_patchMethod · 0.65
runGuardedMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…