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

Function test_member_call_captures_receiver

tests/test_ruby_resolution.py:97–102  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

95
96
97def test_member_call_captures_receiver(tmp_path: Path) -> None:
98 main = _write(tmp_path, "main.rb", MAIN_RB)
99 rc = _find_raw_call(extract_ruby(main), "run")
100 assert rc is not None, "p.run should produce a raw_call with callee 'run'"
101 assert rc["is_member_call"] is True
102 assert rc["receiver"] == "p"
103
104
105def test_local_binding_gives_receiver_a_type(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

extract_rubyFunction · 0.90
_find_raw_callFunction · 0.85
_writeFunction · 0.70

Tested by

no test coverage detected