LCOV - code coverage report
Current view: top level - src/platform/workflowErrors/panel - executionItemList.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 4 4
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import type { ErrorCardData, ErrorGroup } from './types'
       2              : 
       3           43 : export function shouldRenderExecutionItemList(cards: ErrorCardData[]): boolean {
       4           43 :   return (
       5              :     cards.length > 0 &&
       6              :     cards.every(
       7              :       (card) =>
       8              :         card.nodeId &&
       9              :         card.errors.length > 0 &&
      10              :         card.errors.every(
      11              :           (error) => !error.isRuntimeError && Boolean(error.displayItemLabel)
      12              :         )
      13              :     )
      14              :   )
      15              : }
      16              : 
      17          148 : export function isExecutionItemListGroup(group: ErrorGroup): boolean {
      18          148 :   return (
      19              :     group.type === 'execution' && shouldRenderExecutionItemList(group.cards)
      20              :   )
      21              : }
        

Generated by: LCOV version 2.0-1