LCOV - code coverage report
Current view: top level - src/platform/assets/utils - outputKeyUtil.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 { SerializedNodeId } from '@comfyorg/graph-model/nodeId'
       2              : 
       3              : export type OutputKeyParts = {
       4              :   nodeId?: SerializedNodeId | null
       5              :   subfolder?: string | null
       6              :   filename?: string | null
       7              : }
       8              : 
       9         5165 : export function getOutputKey({
      10              :   nodeId,
      11              :   subfolder,
      12              :   filename
      13              : }: OutputKeyParts): string | null {
      14         5165 :   if (nodeId == null || subfolder == null || !filename) {
      15          941 :     return null
      16              :   }
      17              : 
      18         4224 :   return JSON.stringify([String(nodeId), subfolder, filename])
      19              : }
        

Generated by: LCOV version 2.0-1