LCOV - code coverage report
Current view: top level - src/renderer/extensions/vueNodes/widgets/components - BatchNavigation.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 3 3
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1           14 : <template>
       2           58 :   <div v-if="count > 1" class="flex items-center gap-1">
       3              :     <span class="mr-1 text-muted-foreground">
       4              :       <slot name="label" />
       5              :     </span>
       6              :     <Button
       7              :       variant="muted-textonly"
       8              :       size="icon-sm"
       9              :       :disabled="index === 0"
      10              :       data-testid="batch-prev"
      11              :       @click="index--"
      12              :     >
      13              :       <i class="icon-[lucide--chevron-left]" />
      14              :     </Button>
      15              :     <span data-testid="batch-counter">
      16              :       {{ $t('batch.index', { current: index + 1, total: count }) }}
      17              :     </span>
      18              :     <Button
      19              :       variant="muted-textonly"
      20              :       size="icon-sm"
      21              :       :disabled="index === count - 1"
      22              :       data-testid="batch-next"
      23              :       @click="index++"
      24              :     >
      25              :       <i class="icon-[lucide--chevron-right]" />
      26              :     </Button>
      27              :   </div>
      28              : </template>
      29              : 
      30              : <script setup lang="ts">
      31              : import Button from '@comfyorg/design-system/button/Button'
      32              : 
      33           12 : const index = defineModel<number>({ required: true })
      34              : 
      35              : defineProps<{
      36              :   count: number
      37              : }>()
      38              : </script>
        

Generated by: LCOV version 2.0-1