realFormatEventsLine builds an events.jsonl line using the actual Copilot CLI format: each event has a top-level type, a nested data object, an id, and a timestamp.
(eventType string, dataJSON string)
| 76 | // realFormatEventsLine builds an events.jsonl line using the actual Copilot CLI format: |
| 77 | // each event has a top-level type, a nested data object, an id, and a timestamp. |
| 78 | func realFormatEventsLine(eventType string, dataJSON string) string { |
| 79 | return `{"type":"` + eventType + `","data":` + dataJSON + `,"id":"test-id","timestamp":"2026-04-02T04:00:00.000Z"}` |
| 80 | } |
| 81 | |
| 82 | // TestParseEventsJSONLFile verifies that parseEventsJSONLMetrics correctly extracts |
| 83 | // turns, tool calls, tool sequences, and token counts from events.jsonl using |
no outgoing calls
no test coverage detected