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

Method readJSONInteger

lib/py/src/protocol/TJSONProtocol.py:340–349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 return b''.join(numeric).decode('ascii')
339
340 def readJSONInteger(self):
341 self.context.read()
342 self.readJSONQuotes()
343 numeric = self.readJSONNumericChars()
344 self.readJSONQuotes()
345 try:
346 return int(numeric)
347 except ValueError:
348 raise TProtocolException(TProtocolException.INVALID_DATA,
349 "Bad data encounted in numeric data")
350
351 def readJSONDouble(self):
352 self.context.read()

Callers

nothing calls this directly

Calls 4

readJSONQuotesMethod · 0.95
readJSONNumericCharsMethod · 0.95
TProtocolExceptionClass · 0.70
readMethod · 0.65

Tested by

no test coverage detected