LCOV - code coverage report
Current view: top level - src/renderer/extensions/linearMode - LinearProgressBar.vue 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              : <script setup lang="ts">
       2              : import { useQueueProgress } from '@/composables/queue/useQueueProgress'
       3              : import { useExecutionStore } from '@/stores/executionStore'
       4              : import { cn } from '@comfyorg/tailwind-utils'
       5              : 
       6              : const {
       7              :   class: className,
       8              :   overallOpacity = 1,
       9              :   activeOpacity = 1,
      10              :   rounded = false
      11              : } = defineProps<{
      12              :   class?: string
      13              :   overallOpacity?: number
      14              :   activeOpacity?: number
      15              :   rounded?: boolean
      16              : }>()
      17              : 
      18         2355 : const { totalPercent, currentNodePercent } = useQueueProgress()
      19          112 : const executionStore = useExecutionStore()
      20          112 : </script>
      21              : <template>
      22          171 :   <div
      23              :     :class="
      24              :       cn(
      25              :         'relative h-2 bg-secondary transition-opacity',
      26              :         !executionStore.isActiveWorkflowRunning && 'opacity-0',
      27              :         rounded && 'rounded-sm',
      28              :         className
      29              :       )
      30              :     "
      31              :   >
      32              :     <div
      33              :       data-testid="linear-progress-overall"
      34              :       class="absolute inset-0 h-full bg-primary transition-[width]"
      35              :       :class="cn(rounded && 'rounded-sm')"
      36              :       :style="{ width: `${totalPercent}%`, opacity: overallOpacity }"
      37              :     />
      38              :     <div
      39              :       data-testid="linear-progress-node"
      40              :       class="absolute inset-0 h-full bg-primary/30 transition-[width]"
      41              :       :class="cn(rounded && 'rounded-sm')"
      42              :       :style="{ width: `${currentNodePercent}%`, opacity: activeOpacity }"
      43              :     />
      44              :   </div>
      45              : </template>
        

Generated by: LCOV version 2.0-1