# Detecting dead/unreachable code

**URL:** <https://www.ruby-forum.com/t/detecting-dead-unreachable-code/130857>\
**Category:** Rails\
**Created:** [March 3, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/detecting-dead-unreachable-code/130857 "2008-03-03T23:23:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jamie](https://www.ruby-forum.com/u/jamie)\
**Post date:** [March 3, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/detecting-dead-unreachable-code/130857/1 "2008-03-03T23:23:44Z")

</div>

Is anyone aware of a tool for detecting dead/unreachable code in an  
RonR app?

---

<div class="post-metadata">

**Author:** ![jamie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jamie](https://www.ruby-forum.com/u/jamie)\
**Post date:** [March 4, 2008, 12:06am UTC](https://www.ruby-forum.com/t/detecting-dead-unreachable-code/130857/2 "2008-03-04T00:06:59Z")

</div>

On Mar 3, 2:23 pm, jamie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is anyone aware of a tool for detecting dead/unreachable code in an  
> RonR app?

One way to tell if there is dead/unreachable code is to have good test-  
coverage. Then you could use rcov to see what areas of your  
application has proper test coverage or not.
