(captureId: string)
| 32 | const captures: Map<string, PhaseCapture> = new Map() |
| 33 | |
| 34 | function bucketFor(captureId: string): PhaseCapture { |
| 35 | let bucket = captures.get(captureId) |
| 36 | if (!bucket) { |
| 37 | bucket = { phases: [], onFinishCount: 0, yieldedChunks: [] } |
| 38 | captures.set(captureId, bucket) |
| 39 | } |
| 40 | return bucket |
| 41 | } |
| 42 | |
| 43 | export function resetPhaseCapture(captureId: string): void { |
| 44 | captures.set(captureId, { |
no test coverage detected