I'm familiar with a number of code coverage tools, which tells me what percentage of lines / branches / etc are covered by my tests, and even show me which parts of the code have poor coverage.
Are there any tools which do the opposite -- that is, given a section of code, can it show me which tests touch it? That would make it easy to start exploring unfamiliar & poorly documented code, by playing with the tests that are relevant.
You might say it should be obvious from the way the unit tests are organized, but the fact is it often is not. I've worked with more than one project where this was the case.
I happen to be interested in java / scala, but I'm also just interested if anything does this or its just a totally crazy idea.