find_dead_code detects unreferenced functions.
(self)
| 157 | self.store.commit() |
| 158 | |
| 159 | def test_find_dead_code(self): |
| 160 | """find_dead_code detects unreferenced functions.""" |
| 161 | dead = find_dead_code(self.store) |
| 162 | dead_names = {d["name"] for d in dead} |
| 163 | assert "dead_func" in dead_names |
| 164 | |
| 165 | def test_find_dead_code_response_fields(self): |
| 166 | """dead_code entries include file_path, relative_path, and language.""" |
nothing calls this directly
no test coverage detected