(entry: TaskRunLogEntry)
| 455 | }; |
| 456 | |
| 457 | const getCommandDuration = (entry: TaskRunLogEntry): string | undefined => { |
| 458 | if (entry.type !== TaskRunLogEntry_Type.COMMAND_EXECUTE) return undefined; |
| 459 | const startMs = getTimestampMs(entry.commandExecute?.logTime); |
| 460 | const endMs = getTimestampMs(entry.commandExecute?.response?.logTime); |
| 461 | if (startMs <= 0 || endMs <= 0) return undefined; |
| 462 | return formatDuration(endMs - startMs); |
| 463 | }; |
| 464 | |
| 465 | const buildDisplayItems = ( |
| 466 | entries: TaskRunLogEntry[], |
no test coverage detected