MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_mark_error

Method test_mark_error

tests/display/test_models.py:238–246  ·  view source on GitHub ↗

Test error state.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

mark_errorMethod · 0.95
StreamingStateClass · 0.90

Tested by

no test coverage detected