MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _ctor

Function _ctor

tests/test_csharp_object_creation.py:379–385  ·  view source on GitHub ↗
(r, type_name, signature)

Source from the content-addressed store, hash-verified

377# the overload whose parameter count fits, next to the edge to the type.
378
379def _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
388def test_construction_links_the_constructor_overload_its_arguments_fit(tmp_path):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected