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

            Line data    Source code
       1              : import type { ConcatClipSlot } from '@/composables/videoConcat/videoConcatOrder'
       2              : import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
       3              : import { useLinkStore } from '@/stores/linkStore'
       4              : import { graphScopeOf } from '@comfyorg/graph-model/graphScopeId'
       5              : 
       6              : interface LinkedSlot extends ConcatClipSlot {
       7              :   inputName: string
       8              : }
       9              : 
      10            0 : export function linkedConcatSlots(
      11              :   node: LGraphNode,
      12              :   source: string
      13              : ): LinkedSlot[] {
      14            0 :   const graph = node.graph
      15            0 :   if (!graph) return []
      16            0 :   const linkStore = useLinkStore()
      17            0 :   const scope = graphScopeOf(graph)
      18            0 :   const prefix = `${source}.`
      19            0 :   return node.inputs.flatMap((input, slot) => {
      20            0 :     if (!input.name.startsWith(prefix)) return []
      21            0 :     const link = linkStore.getInputSlotLink(scope, node.id, slot)
      22            0 :     if (!link) return []
      23            0 :     return [
      24              :       {
      25              :         name: input.name.slice(prefix.length),
      26              :         linkId: link.id,
      27              :         inputName: input.name
      28              :       }
      29              :     ]
      30              :   })
      31              : }
        

Generated by: LCOV version 2.0-1