(tmp_path)
| 149 | |
| 150 | |
| 151 | def test_decorated_class(tmp_path): |
| 152 | f = _write(tmp_path / "pkg" / "model.py", |
| 153 | "from registry import register_model\n" |
| 154 | "\n" |
| 155 | "@register_model\n" |
| 156 | "class Point:\n" |
| 157 | " x: int\n") |
| 158 | r = extract([f], cache_root=tmp_path) |
| 159 | assert _make_id("register_model") in _deco_edges( |
| 160 | r, _class_nid("pkg/model.py", "Point")) |
| 161 | |
| 162 | |
| 163 | def test_stdlib_class_decorator_emits_no_edge(tmp_path): |
nothing calls this directly
no test coverage detected