MCPcopy Create free account
hub / github.com/microsoft/debugpy / test_read

Method test_read

tests/debugpy/common/test_messaging.py:110–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 ]
109
110 def test_read(self):
111 stream = JsonMemoryStream(self.MESSAGES, [])
112 for expected_message in self.MESSAGES:
113 message = stream.read_json()
114 assert message == expected_message
115 with pytest.raises(messaging.NoMoreMessages) as exc_info:
116 stream.read_json()
117 assert exc_info.value.stream is stream
118
119 def test_write(self):
120 messages = []

Callers

nothing calls this directly

Calls 2

read_jsonMethod · 0.95
JsonMemoryStreamClass · 0.85

Tested by

no test coverage detected