title: Is it possible to get code coverage without executing any code in Python?
body: <p>Yeah I know it's a pretty dumb question.</p>
  <p>suppose there's a file <code>temp.py</code>where -</p>
  <pre><code>def somemethod():
  
  ## some giant code which I don't want to execute
  
  return true
  </code></pre>
  <p>and now I want to unit test this code and get the coverage but I don't want to execute the code.
  I tried mocking/patching, as expected only the first line is getting covered.</p>
  <p>Is there any module or trick that can help me in achieving this??</p>