Test error state.
(self)
| 236 | assert state.is_complete |
| 237 | |
| 238 | def test_mark_error(self): |
| 239 | """Test error state.""" |
| 240 | state = StreamingState() |
| 241 | |
| 242 | state.mark_error() |
| 243 | |
| 244 | assert state.phase == StreamingPhase.ERROR |
| 245 | assert state.is_complete |
| 246 | assert state.end_time is not None |
| 247 | |
| 248 | def test_elapsed_time(self): |
| 249 | """Test elapsed time calculation.""" |
nothing calls this directly
no test coverage detected