()
| 65 | } |
| 66 | |
| 67 | export 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 | |
| 85 | export function test_isRunning_withReentrancy() { |
| 86 | resetProfiles(); |
nothing calls this directly
no test coverage detected