MCPcopy Index your code
hub / github.com/python/mypy / test_scc

Method test_scc

mypy/test/testgraph.py:81–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 list(topsort(data))
80
81 def test_scc(self) -> None:
82 vertices = {"A", "B", "C", "D"}
83 edges: dict[str, list[str]] = {"A": ["B", "C"], "B": ["C"], "C": ["B", "D"], "D": []}
84 sccs = {frozenset(x) for x in strongly_connected_components(vertices, edges)}
85 assert_equal(sccs, {frozenset({"A"}), frozenset({"B", "C"}), frozenset({"D"})})
86
87 def _make_manager(self) -> BuildManager:
88 options = Options()

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
frozensetClass · 0.85

Tested by

no test coverage detected