MCPcopy Create free account
hub / github.com/apache/fory / __index__

Method __index__

python/pyfory/tests/test_ref_tracking.py:94–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self.owner = None
93
94 def __index__(self):
95 # Reallocate list storage and inject invalid element types.
96 self.owner.clear()
97 self.owner.extend([bytearray(16)] * 1024)
98 return 7
99
100
101@pytest.mark.parametrize("xlang", [False, True])

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected