LCOV - code coverage report
Current view: top level - src/extensions/core/load3d - findNumericWidget.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 2 2
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import type { IBaseWidget, INumericWidget } from '@comfyorg/graph-model/widgets'
       2              : 
       3              : /** Finds the numeric widget with the given name. */
       4           42 : export function findNumericWidget(
       5              :   widgets: IBaseWidget[] | undefined,
       6              :   name: string
       7              : ): INumericWidget | undefined {
       8           42 :   return widgets?.find(
       9              :     (w): w is INumericWidget => w.name === name && w.type === 'number'
      10              :   )
      11              : }
        

Generated by: LCOV version 2.0-1