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

            Line data    Source code
       1              : /** The display order shared by badge renderers. */
       2         2356 : export const CORE_PART_ORDER = ['id', 'lifecycle', 'source'] as const
       3              : 
       4              : export type CoreBadgePart = (typeof CORE_PART_ORDER)[number]
       5              : 
       6              : export interface CoreBadgeData {
       7              :   kind: 'core'
       8              :   part: CoreBadgePart
       9              :   text: string
      10              :   bgColor?: string
      11              :   fgColor?: string
      12              : }
      13              : 
      14              : interface CreditsBadgeData {
      15              :   kind: 'credits'
      16              :   text: string
      17              :   bgColor?: string
      18              :   fgColor?: string
      19              : }
      20              : 
      21              : /**
      22              :  * A badge row: plain presentation data projected from its sources
      23              :  * (settings, node definition, palette, pricing, connectivity).
      24              :  * Core rows carry raw source text plus which projection part they are.
      25              :  * They are emitted in display order; renderers only join and trim them.
      26              :  * Extension badges are not rows — they live on `node.badges`.
      27              :  * Never serialized.
      28              :  */
      29              : export type BadgeData = CoreBadgeData | CreditsBadgeData
        

Generated by: LCOV version 2.0-1