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

            Line data    Source code
       1              : import { defineStore } from 'pinia'
       2              : 
       3              : export type AutoQueueMode =
       4              :   | 'disabled'
       5              :   | 'change'
       6              :   | 'instant-idle'
       7              :   | 'instant-running'
       8              : 
       9         2059 : export function isInstantMode(
      10              :   mode: AutoQueueMode
      11              : ): mode is 'instant-idle' | 'instant-running' {
      12         2059 :   return mode === 'instant-idle' || mode === 'instant-running'
      13              : }
      14              : 
      15         2072 : export function isInstantRunningMode(
      16              :   mode: AutoQueueMode
      17              : ): mode is 'instant-running' {
      18         2072 :   return mode === 'instant-running'
      19              : }
      20              : 
      21         2356 : export const useQueueSettingsStore = defineStore('queueSettingsStore', {
      22              :   state: () => ({
      23              :     mode: 'disabled' as AutoQueueMode,
      24              :     batchCount: 1
      25              :   })
      26              : })
        

Generated by: LCOV version 2.0-1