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

Method readBool

lib/py/src/protocol/TCompactProtocol.py:406–413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404 readMapEnd = readCollectionEnd
405
406 def readBool(self):
407 if self.state == BOOL_READ:
408 return self.__bool_value == CompactType.TRUE
409 elif self.state == CONTAINER_READ:
410 return self.__readByte() == CompactType.TRUE
411 else:
412 raise AssertionError("Invalid state in compact protocol: %d" %
413 self.state)
414
415 readByte = reader(__readByte)
416 __readI16 = __readZigZag

Callers 2

testNakedFunction · 0.95
testFieldFunction · 0.95

Calls 1

__readByteMethod · 0.95

Tested by

no test coverage detected