Test adding multiple chunks.
(self)
| 131 | assert state.phase == StreamingPhase.RECEIVING |
| 132 | |
| 133 | def test_add_multiple_chunks(self): |
| 134 | """Test adding multiple chunks.""" |
| 135 | state = StreamingState() |
| 136 | |
| 137 | state.add_chunk(StreamingChunk(content="Hello ")) |
| 138 | state.add_chunk(StreamingChunk(content="world")) |
| 139 | state.add_chunk(StreamingChunk(content="!")) |
| 140 | |
| 141 | assert state.accumulated_content == "Hello world!" |
| 142 | assert state.chunks_received == 3 |
| 143 | |
| 144 | def test_detect_code_content_type(self): |
| 145 | """Test code content type detection.""" |
nothing calls this directly
no test coverage detected