MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / test_isRunning

Function test_isRunning

apps/automated/src/profiling/profiling-tests.ts:67–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67export function test_isRunning() {
68 resetProfiles();
69 const name = 'test_isRunning';
70 assertFalse(isRunning(name), 'isRunning should be false before start');
71
72 start(name);
73 assertTrue(isRunning(name), 'isRunning should be true after start');
74
75 stop(name);
76 assertFalse(isRunning(name), 'isRunning should be false after stop');
77
78 start(name);
79 assertTrue(isRunning(name), 'isRunning should be true after second start');
80
81 stop(name);
82 assertFalse(isRunning(name), 'isRunning should be false after second stop');
83}
84
85export function test_isRunning_withReentrancy() {
86 resetProfiles();

Callers

nothing calls this directly

Calls 6

resetProfilesFunction · 0.90
assertFalseFunction · 0.90
isRunningFunction · 0.90
startFunction · 0.90
assertTrueFunction · 0.90
stopFunction · 0.90

Tested by

no test coverage detected