MCPcopy Create free account
hub / github.com/apache/thrift / test_void

Function test_void

test/features/theader_binary.py:35–49  ·  view source on GitHub ↗
(proto)

Source from the content-addressed store, hash-verified

33
34
35def test_void(proto):
36 proto.writeMessageBegin('testVoid', TMessageType.CALL, 3)
37 proto.writeStructBegin('testVoid_args')
38 proto.writeFieldStop()
39 proto.writeStructEnd()
40 proto.writeMessageEnd()
41 proto.trans.flush()
42
43 _, mtype, _ = proto.readMessageBegin()
44 assert mtype == TMessageType.REPLY
45 proto.readStructBegin()
46 _, ftype, _ = proto.readFieldBegin()
47 assert ftype == TType.STOP
48 proto.readStructEnd()
49 proto.readMessageEnd()
50
51
52# THeader stack should accept binary protocol with optionally framed transport

Callers 1

mainFunction · 0.85

Calls 11

writeMessageBeginMethod · 0.65
writeStructBeginMethod · 0.65
writeFieldStopMethod · 0.65
writeStructEndMethod · 0.65
writeMessageEndMethod · 0.65
readMessageBeginMethod · 0.65
readStructBeginMethod · 0.65
readFieldBeginMethod · 0.65
readStructEndMethod · 0.65
readMessageEndMethod · 0.65
flushMethod · 0.45

Tested by

no test coverage detected