(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestAppendAndRender(t *testing.T) { |
| 32 | t.Parallel() |
| 33 | tr := newTestTranscript() |
| 34 | |
| 35 | _ = tr.Append(types.User("hello")) |
| 36 | _ = tr.Append(types.Agent(types.MessageTypeAssistant, testAgent, "hi there")) |
| 37 | |
| 38 | out := tr.Render(80) |
| 39 | assert.Contains(t, out, "hello") |
| 40 | assert.Contains(t, out, "hi there") |
| 41 | // One blank separator line between the two messages. |
| 42 | assert.Contains(t, out, "\n\n") |
| 43 | } |
| 44 | |
| 45 | func TestAppendToLastMessageStreamsIntoSameMessage(t *testing.T) { |
| 46 | t.Parallel() |
nothing calls this directly
no test coverage detected