MCPcopy Index your code
hub / github.com/prometheus/client_python / test_expansion

Method test_expansion

tests/test_multiprocess.py:607–610  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

605 self.assertEqual([('abc', 123.0, 987.0)], list(self.d.read_all_values()))
606
607 def test_expansion(self):
608 key = 'a' * mmap_dict._INITIAL_MMAP_SIZE
609 self.d.write_value(key, 123.0, 987.0)
610 self.assertEqual([(key, 123.0, 987.0)], list(self.d.read_all_values()))
611
612 def test_multi_expansion(self):
613 key = 'a' * mmap_dict._INITIAL_MMAP_SIZE * 4

Callers

nothing calls this directly

Calls 2

write_valueMethod · 0.80
read_all_valuesMethod · 0.80

Tested by

no test coverage detected