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

Function TestOpenCodeProvider_ParseLine

internal/agent/opencode_test.go:109–118  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

107}
108
109func TestOpenCodeProvider_ParseLine(t *testing.T) {
110 p := NewOpenCodeProvider("")
111 e := p.ParseLine(`{"type":"step_start","timestamp":1234567890,"sessionID":"ses_test123"}`)
112 if e == nil {
113 t.Fatal("ParseLine(step_start) returned nil")
114 }
115 if e.Type != loop.EventIterationStart {
116 t.Errorf("ParseLine(step_start) Type = %v, want EventIterationStart", e.Type)
117 }
118}

Callers

nothing calls this directly

Calls 2

ParseLineMethod · 0.95
NewOpenCodeProviderFunction · 0.85

Tested by

no test coverage detected