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

Method test_add_multiple_chunks

tests/display/test_models.py:133–142  ·  view source on GitHub ↗

Test adding multiple chunks.

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

add_chunkMethod · 0.95
StreamingStateClass · 0.90
StreamingChunkClass · 0.90

Tested by

no test coverage detected