MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_grouper_private

Function test_grouper_private

lib/matplotlib/tests/test_cbook.py:772–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

770
771
772def test_grouper_private():
773 class Dummy:
774 pass
775 objs = [Dummy() for _ in range(5)]
776 g = cbook.Grouper()
777 g.join(*objs)
778 # reach in and touch the internals !
779 mapping = g._mapping
780
781 for o in objs:
782 assert o in mapping
783
784 base_set = mapping[objs[0]]
785 for o in objs[1:]:
786 assert mapping[o] is base_set
787
788
789def test_flatiter():

Callers

nothing calls this directly

Calls 2

joinMethod · 0.95
DummyClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…