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

Function stepLogLine

lib/plugin/junitReporter.js:237–241  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

235}
236
237function stepLogLine(entry) {
238 const indent = ' '.repeat(entry.depth)
239 const mark = entry.step && entry.step.status === 'failed' ? '[FAILED] ' : ''
240 return `${indent}${mark}${stepText(entry.step)} (${stepDuration(entry.step)}ms)`
241}
242
243function stepText(step) {
244 if (step && typeof step.toString === 'function' && step.toString !== Object.prototype.toString) return step.toString()

Callers

nothing calls this directly

Calls 2

stepTextFunction · 0.85
stepDurationFunction · 0.85

Tested by

no test coverage detected