(type, outcome, latency_ms, age_at_verify_ms, ts, reason)
| 239 | } |
| 240 | |
| 241 | function mkEventWithTs(type, outcome, latency_ms, age_at_verify_ms, ts, reason) { |
| 242 | return { |
| 243 | type: 'MemoryGraphEvent', |
| 244 | kind: 'recall_verify', |
| 245 | id: 'mge_' + ts + '_' + Math.random().toString(36).slice(2, 8), |
| 246 | ts, |
| 247 | asset: { type, id: 'sha256:dummy' + Math.random().toString(36).slice(2, 8) }, |
| 248 | verification: { |
| 249 | outcome, |
| 250 | reason: reason || null, |
| 251 | attempts: 1, |
| 252 | latency_ms, |
| 253 | age_at_verify_ms, |
| 254 | recalled_hash: outcome === 'roundtrip_ok' ? 'sha256:dummy' : null, |
| 255 | }, |
| 256 | signal: { signals: [] }, |
| 257 | }; |
| 258 | } |
no outgoing calls
no test coverage detected