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

Method test_multi_expansion

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

Source from the content-addressed store, hash-verified

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
614 self.d.write_value('abc', 42.0, 987.0)
615 self.d.write_value(key, 123.0, 876.0)
616 self.d.write_value('def', 17.0, 765.0)
617 self.assertEqual(
618 [('abc', 42.0, 987.0), (key, 123.0, 876.0), ('def', 17.0, 765.0)],
619 list(self.d.read_all_values()))
620
621 def test_corruption_detected(self):
622 self.d.write_value('abc', 42.0, 987.0)

Callers

nothing calls this directly

Calls 2

write_valueMethod · 0.80
read_all_valuesMethod · 0.80

Tested by

no test coverage detected