(t *testing.T)
| 108 | } |
| 109 | |
| 110 | func TestParseLineCodex_error(t *testing.T) { |
| 111 | line := `{"type":"error","message":"stream error: broken pipe"}` |
| 112 | ev := ParseLineCodex(line) |
| 113 | if ev == nil { |
| 114 | t.Fatal("expected event, got nil") |
| 115 | } |
| 116 | if ev.Type != EventError { |
| 117 | t.Errorf("expected EventError, got %v", ev.Type) |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func TestParseLineCodex_turnCompleted_ignored(t *testing.T) { |
| 122 | line := `{"type":"turn.completed","usage":{"input_tokens":24763,"cached_input_tokens":24448,"output_tokens":122}}` |
nothing calls this directly
no test coverage detected