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

Method test_add_text_chunk

tests/display/test_models.py:122–131  ·  view source on GitHub ↗

Test adding text chunk.

(self)

Source from the content-addressed store, hash-verified

120 assert not state.is_complete
121
122 def test_add_text_chunk(self):
123 """Test adding text chunk."""
124 state = StreamingState()
125 chunk = StreamingChunk(content="Hello ")
126
127 state.add_chunk(chunk)
128
129 assert state.accumulated_content == "Hello "
130 assert state.chunks_received == 1
131 assert state.phase == StreamingPhase.RECEIVING
132
133 def test_add_multiple_chunks(self):
134 """Test adding multiple chunks."""

Callers

nothing calls this directly

Calls 3

add_chunkMethod · 0.95
StreamingStateClass · 0.90
StreamingChunkClass · 0.90

Tested by

no test coverage detected