(raw: Raw)
| 120 | type Raw = Record<string, any>; |
| 121 | |
| 122 | function normalizeSession(raw: Raw): DebugSession { |
| 123 | return { |
| 124 | id: String(raw.id), |
| 125 | name: raw.name ?? undefined, |
| 126 | durationSecs: Number(raw.duration_secs ?? 0), |
| 127 | startedAt: raw.started_at ?? null, |
| 128 | stoppedAt: raw.stopped_at ?? null, |
| 129 | completedAt: raw.completed_at ?? null, |
| 130 | timedOut: raw.timed_out === true, |
| 131 | targets: Array.isArray(raw.targets) ? raw.targets : [], |
| 132 | }; |
| 133 | } |
| 134 | |
| 135 | // Attribute names used in debug traces |
| 136 | const attributeNames = { |
no outgoing calls
no test coverage detected