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

Function TestParseLineCodex_threadStarted

internal/loop/codex_parser_test.go:7–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestParseLineCodex_threadStarted(t *testing.T) {
8 line := `{"type":"thread.started","thread_id":"0199a213-81c0-7800-8aa1-bbab2a035a53"}`
9 ev := ParseLineCodex(line)
10 if ev == nil {
11 t.Fatal("expected event, got nil")
12 }
13 if ev.Type != EventIterationStart {
14 t.Errorf("expected EventIterationStart, got %v", ev.Type)
15 }
16}
17
18func TestParseLineCodex_turnStarted(t *testing.T) {
19 line := `{"type":"turn.started"}`

Callers

nothing calls this directly

Calls 1

ParseLineCodexFunction · 0.85

Tested by

no test coverage detected