(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestParseLineCursor_systemInit(t *testing.T) { |
| 9 | line := `{"type":"system","subtype":"init","apiKeySource":"login","cwd":"/Users/user/project","session_id":"c6b62c6f-7ead-4fd6-9922-e952131177ff","model":"Claude 4 Sonnet","permissionMode":"default"}` |
| 10 | ev := ParseLineCursor(line) |
| 11 | if ev == nil { |
| 12 | t.Fatal("expected event, got nil") |
| 13 | } |
| 14 | if ev.Type != EventIterationStart { |
| 15 | t.Errorf("expected EventIterationStart, got %v", ev.Type) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func TestParseLineCursor_assistantText(t *testing.T) { |
| 20 | line := `{"type":"assistant","message":{"role":"assistant","content":[{"type":"text","text":"I'll read the README.md file"}]},"session_id":"c6b62c6f-7ead-4fd6-9922-e952131177ff"}` |
nothing calls this directly
no test coverage detected