MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestParseLineCursor_chiefDone

Function TestParseLineCursor_chiefDone

internal/loop/cursor_parser_test.go:44–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func 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
55func 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"}`

Callers

nothing calls this directly

Calls 1

ParseLineCursorFunction · 0.85

Tested by

no test coverage detected