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

Function TestCodexProvider_ParseLine

internal/agent/codex_test.go:79–89  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

77}
78
79func TestCodexProvider_ParseLine(t *testing.T) {
80 p := NewCodexProvider("")
81 // thread.started -> EventIterationStart
82 e := p.ParseLine(`{"type":"thread.started"}`)
83 if e == nil {
84 t.Fatal("ParseLine(thread.started) returned nil")
85 }
86 if e.Type != loop.EventIterationStart {
87 t.Errorf("ParseLine(thread.started) Type = %v, want EventIterationStart", e.Type)
88 }
89}

Callers

nothing calls this directly

Calls 2

ParseLineMethod · 0.95
NewCodexProviderFunction · 0.85

Tested by

no test coverage detected