MCPcopy
hub / github.com/celery/celery / test_append_limited

Method test_append_limited

t/unit/utils/test_collections.py:410–414  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

408class test_BufferMap:
409
410 def test_append_limited(self):
411 b = BufferMap(10)
412 for i in range(20):
413 b.put(i, i)
414 self.assert_size_and_first(b, 10, 10)
415
416 def assert_size_and_first(self, buf, size, expected_first_item):
417 assert buf.total == size

Callers

nothing calls this directly

Calls 3

putMethod · 0.95
assert_size_and_firstMethod · 0.95
BufferMapClass · 0.90

Tested by

no test coverage detected