MCPcopy Create free account
hub / github.com/tirth8205/code-review-graph / test_find_dead_code

Method test_find_dead_code

tests/test_refactor.py:159–163  ·  view source on GitHub ↗

find_dead_code detects unreferenced functions.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

find_dead_codeFunction · 0.90

Tested by

no test coverage detected