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)

graph LR shouldInsertDelay["shouldInsertDelay"] generateFromRecording["generateFromRecording"] generateFromRecording -->|calls| shouldInsertDelay style shouldInsertDelay fill:#dbeafe,stroke:#2563eb,stroke-width:2px click shouldInsertDelay "7d9c1d11ee65d3a9.html" click generateFromRecording "bc12aadd5ae3e7fb.html"
SourceType
generateFromRecording calls