MCPcopy Create free account
hub / github.com/apache/qpid-proton / testMemoryView

Method testMemoryView

python/tests/proton_tests/codec.py:524–531  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

522 assert data.get_object() == b"foo"
523
524 def testMemoryView(self):
525 self.data.put_object(memoryview(b"foo"))
526 data = Data()
527 data.decode(self.data.encode())
528 data.rewind()
529 assert data.next()
530 assert data.type() == Data.BINARY
531 assert data.get_object() == b"foo"
532
533 def testLookup(self):
534 obj = {symbol("key"): u"value",

Callers

nothing calls this directly

Calls 8

decodeMethod · 0.95
rewindMethod · 0.95
nextMethod · 0.95
typeMethod · 0.95
get_objectMethod · 0.95
DataClass · 0.90
put_objectMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected