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

Method test_simple_chain_closure

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

Source from the content-addressed store, hash-verified

214 )
215
216 def test_simple_chain_closure(self) -> None:
217 self.assert_transitive_closure(
218 [self.fx.t.id, self.fx.s.id],
219 [
220 self.supc(self.fx.t, self.fx.b),
221 self.subc(self.fx.t, self.fx.s),
222 self.subc(self.fx.s, self.fx.a),
223 ],
224 {(self.fx.t.id, self.fx.s.id)},
225 {self.fx.t.id: {self.fx.b}, self.fx.s.id: {self.fx.b}},
226 {self.fx.t.id: {self.fx.a}, self.fx.s.id: {self.fx.a}},
227 )
228
229 def test_reverse_chain_closure(self) -> None:
230 self.assert_transitive_closure(

Callers

nothing calls this directly

Calls 3

supcMethod · 0.95
subcMethod · 0.95

Tested by

no test coverage detected