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

Method test_elapsed_time

tests/display/test_models.py:248–255  ·  view source on GitHub ↗

Test elapsed time calculation.

(self)

Source from the content-addressed store, hash-verified

246 assert state.end_time is not None
247
248 def test_elapsed_time(self):
249 """Test elapsed time calculation."""
250 state = StreamingState()
251
252 # Add small delay
253 time.sleep(0.1)
254
255 assert state.elapsed_time >= 0.1
256
257 def test_elapsed_time_after_completion(self):
258 """Test elapsed time uses end_time after completion."""

Callers

nothing calls this directly

Calls 1

StreamingStateClass · 0.90

Tested by

no test coverage detected