| 50 | ("app::SmartClient& x", "([&] { x.actions->Execute(); })()", "app::Smart"), |
| 51 | ]) |
| 52 | def test_split_header_chains(tmp_path, parameter, expression, owner, reverse): |
| 53 | paths, result = _extract(tmp_path, f"void Run({parameter}) {{ {expression}; }}", reverse=reverse) |
| 54 | assert _calls(result) == [(owner, ".Execute()", "INFERRED")] |
| 55 | cached = extract(paths, root=tmp_path, cache_root=tmp_path / "cache", parallel=False) |
| 56 | assert _calls(cached) == _calls(result) |
| 57 | |
| 58 | |
| 59 | def test_scope_and_same_named_fields(tmp_path): |