(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func 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 | } |
nothing calls this directly
no test coverage detected