(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestParseLineCursor_chiefDone(t *testing.T) { |
| 45 | line := `{"type":"assistant","message":{"role":"assistant","content":[{"type":"text","text":"Story complete. <chief-done/>"}]},"session_id":"x"}` |
| 46 | ev := ParseLineCursor(line) |
| 47 | if ev == nil { |
| 48 | t.Fatal("expected event, got nil") |
| 49 | } |
| 50 | if ev.Type != EventStoryDone { |
| 51 | t.Errorf("expected EventStoryDone, got %v", ev.Type) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func TestParseLineCursor_toolCallStartedRead(t *testing.T) { |
| 56 | line := `{"type":"tool_call","subtype":"started","call_id":"toolu_abc","tool_call":{"readToolCall":{"args":{"path":"README.md"}}},"session_id":"x"}` |
nothing calls this directly
no test coverage detected