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

Function TestParseLineCodex_turnStarted

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

Source from the content-addressed store, hash-verified

16}
17
18func TestParseLineCodex_turnStarted(t *testing.T) {
19 line := `{"type":"turn.started"}`
20 ev := ParseLineCodex(line)
21 if ev == nil {
22 t.Fatal("expected event, got nil")
23 }
24 if ev.Type != EventIterationStart {
25 t.Errorf("expected EventIterationStart, got %v", ev.Type)
26 }
27}
28
29func TestParseLineCodex_commandExecutionStarted(t *testing.T) {
30 line := `{"type":"item.started","item":{"id":"item_1","type":"command_execution","command":"bash -lc ls","aggregated_output":"","exit_code":null,"status":"in_progress"}}`

Callers

nothing calls this directly

Calls 1

ParseLineCodexFunction · 0.85

Tested by

no test coverage detected