MCPcopy Index your code
hub / github.com/python/cpython / get_groups

Method get_groups

Lib/test/test_graphlib.py:214–219  ·  view source on GitHub ↗
(ts)

Source from the content-addressed store, hash-verified

212
213 def test_order_of_insertion_does_not_matter_between_groups(self):
214 def get_groups(ts):
215 ts.prepare()
216 while ts.is_active():
217 nodes = ts.get_ready()
218 ts.done(*nodes)
219 yield set(nodes)
220
221 ts = graphlib.TopologicalSorter()
222 ts.add(3, 2, 1)

Callers 1

test_get_groupsMethod · 0.80

Calls 5

setFunction · 0.85
get_readyMethod · 0.80
prepareMethod · 0.45
is_activeMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected