MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / stepDuration

Function stepDuration

lib/plugin/junitReporter.js:248–253  ·  view source on GitHub ↗
(step)

Source from the content-addressed store, hash-verified

246}
247
248function stepDuration(step) {
249 if (!step) return 0
250 if (typeof step.duration === 'number' && step.duration >= 0) return step.duration
251 if (step.startTime && step.endTime) return Math.max(0, step.endTime - step.startTime)
252 return 0
253}
254
255function groupBySuite(tests) {
256 const groups = []

Callers 1

stepLogLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected