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

Function TestCursorProvider_ParseLine

internal/agent/cursor_test.go:71–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestCursorProvider_ParseLine(t *testing.T) {
72 p := NewCursorProvider("")
73 line := `{"type":"system","subtype":"init","session_id":"x"}`
74 e := p.ParseLine(line)
75 if e == nil {
76 t.Fatal("ParseLine(system init) returned nil")
77 }
78 if e.Type != loop.EventIterationStart {
79 t.Errorf("ParseLine(system init) Type = %v, want EventIterationStart", e.Type)
80 }
81}
82
83func TestCursorProvider_CleanOutput(t *testing.T) {
84 p := NewCursorProvider("")

Callers

nothing calls this directly

Calls 2

ParseLineMethod · 0.95
NewCursorProviderFunction · 0.85

Tested by

no test coverage detected