LCOV - code coverage report
Current view: top level - src/composables - useViewErrorsInGraph.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 13 13
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
       2              : import { useExecutionErrorStore } from '@/stores/executionErrorStore'
       3              : import { usePropertiesPanelStore } from '@/renderer/extensions/propertiesPanel/propertiesPanelStore'
       4              : import { useErrorsTabRequestStore } from '@/platform/workflowErrors/panel/errorsTabRequestStore'
       5              : 
       6         2082 : export function useViewErrorsInGraph() {
       7         2082 :   const canvasStore = useCanvasStore()
       8         2082 :   const executionErrorStore = useExecutionErrorStore()
       9         2082 :   const propertiesPanelStore = usePropertiesPanelStore()
      10         2082 :   const errorsTabRequestStore = useErrorsTabRequestStore()
      11              : 
      12           73 :   function viewErrorsInGraph(groupKeys: readonly string[]) {
      13           73 :     canvasStore.linearMode = false
      14           73 :     if (canvasStore.canvas) {
      15           73 :       canvasStore.canvas.deselectAll()
      16              :     }
      17              : 
      18           73 :     if (propertiesPanelStore.openPanel('errors')) {
      19           73 :       errorsTabRequestStore.requestDetails(groupKeys)
      20              :     }
      21           73 :     executionErrorStore.dismissErrorOverlay()
      22              :   }
      23              : 
      24         2082 :   return { viewErrorsInGraph }
      25              : }
        

Generated by: LCOV version 2.0-1