(r, type_name, signature)
| 377 | # the overload whose parameter count fits, next to the edge to the type. |
| 378 | |
| 379 | def _ctor(r, type_name, signature): |
| 380 | ids = [n["id"] for n in r["nodes"] |
| 381 | if n["label"] == f".{type_name}()" |
| 382 | and (n.get("metadata") or {}).get("kind") == "constructor" |
| 383 | and (n.get("metadata") or {}).get("signature") == signature] |
| 384 | assert len(ids) == 1, (type_name, signature, ids) |
| 385 | return ids[0] |
| 386 | |
| 387 | |
| 388 | def test_construction_links_the_constructor_overload_its_arguments_fit(tmp_path): |
no test coverage detected