(xlang)
| 239 | |
| 240 | @pytest.mark.parametrize("xlang", [False, True]) |
| 241 | def test_stream_deserialize_truncated_error(xlang): |
| 242 | fory = pyfory.Fory(xlang=xlang, ref=True, compatible=xlang) |
| 243 | data = fory.serialize({"k": "value", "numbers": [1, 2, 3, 4]}) |
| 244 | truncated = data[:-1] |
| 245 | |
| 246 | with pytest.raises(Exception): |
| 247 | fory.deserialize(Buffer.from_stream(OneByteStream(truncated))) |
| 248 | |
| 249 | |
| 250 | @pytest.mark.parametrize("xlang", [False, True]) |
nothing calls this directly
no test coverage detected