MCPcopy Index your code
hub / github.com/danielgtaylor/python-betterproto / test_message_dump_delimited

Function test_message_dump_delimited

tests/test_streams.py:134–143  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

132
133
134def test_message_dump_delimited(tmp_path):
135 with open(tmp_path / "message_dump_delimited.out", "wb") as stream:
136 oneof_example.dump(stream, betterproto.SIZE_DELIMITED)
137 oneof_example.dump(stream, betterproto.SIZE_DELIMITED)
138 nested_example.dump(stream, betterproto.SIZE_DELIMITED)
139
140 with open(tmp_path / "message_dump_delimited.out", "rb") as test_stream, open(
141 streams_path / "delimited_messages.in", "rb"
142 ) as exp_stream:
143 assert test_stream.read() == exp_stream.read()
144
145
146def test_message_len():

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected