shouldInsertDelay function ✓ 100.0%
Last updated: 2026-03-01T23:25:47.084Z
Metrics
LOC: 8
Complexity: 2
Params: 4
Coverage: 100.0% (2/2 lines, 14x executed)
Signature
shouldInsertDelay(
current: RecordedStep,
previous: RecordedStep,
threshold: number,
): : number | null
Source Code
function shouldInsertDelay(
current: RecordedStep,
previous: RecordedStep,
threshold: number,
): number | null {
const delta = current.timestamp - previous.timestamp;
return delta >= threshold ? delta : null;
}
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| generateFromRecording | calls |