title: How can I find what tests cover specific Go code?
body: <p>I'm trying to figure out if there's a way to see what tests cover the functions in my Go code. I'm working on a code base with other developers so I didn't write all the tests/code myself. </p>
  
  <p>I see some functions that are partially covered, or almost entirely covered, but they have no references anywhere (in its own, or other packages), and the functions aren't called directly in any of the tests. </p>
  
  <p>Is there a way I can find which tests are covering that specific code? When I've tried to find if it's possible, all I get are articles showing how to write/run tests and get coverage percentages/highlighting, but nothing that actually shows if it's possible at all. </p>
  
  <p>For the record, I'm using VS Code on linux and running <code>go test ./... -cover</code> in my terminals, as well as <code>Ctrl+Shift+P -&gt; "Go: Toggle Test Coverage In Current Package"</code> for coverage highlighting within VS Code.</p>