(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 83 | func TestCursorProvider_CleanOutput(t *testing.T) { |
| 84 | p := NewCursorProvider("") |
nothing calls this directly
no test coverage detected