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

Method test_reverse_chain_closure

mypy/test/testsolve.py:229–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

227 )
228
229 def test_reverse_chain_closure(self) -> None:
230 self.assert_transitive_closure(
231 [self.fx.t.id, self.fx.s.id],
232 [
233 self.subc(self.fx.t, self.fx.s),
234 self.subc(self.fx.t, self.fx.a),
235 self.supc(self.fx.s, self.fx.b),
236 ],
237 {(self.fx.t.id, self.fx.s.id)},
238 {self.fx.t.id: set(), self.fx.s.id: {self.fx.b}},
239 {self.fx.t.id: {self.fx.a}, self.fx.s.id: set()},
240 )
241
242 def test_secondary_constraint_closure(self) -> None:
243 self.assert_transitive_closure(

Callers

nothing calls this directly

Calls 4

subcMethod · 0.95
supcMethod · 0.95
setClass · 0.85

Tested by

no test coverage detected