LCOV - code coverage report
Current view: top level - src/extensions/core - imageCompare.ts 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              : import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
       2              : import type { ComfyExtension } from '@/types/comfy'
       3              : 
       4         2355 : export const imageCompareExtension: ComfyExtension = {
       5              :   name: 'Comfy.ImageCompare',
       6              : 
       7              :   async nodeCreated(node: LGraphNode) {
       8        23115 :     if (node.constructor.comfyClass !== 'ImageCompare') return
       9              : 
      10           21 :     const [oldWidth, oldHeight] = node.size
      11           21 :     node.setSize([Math.max(oldWidth, 400), Math.max(oldHeight, 350)])
      12              :   }
      13              : }
        

Generated by: LCOV version 2.0-1