If you are doing test development (as suggested by tags), each line of production code is first justified by an unsuccessful test case.
In other words, the existence of every line of your production code is implicitly checked, because without it some test should have failed. At the same time, you can safely assume that the private function / lambda / close has already been checked from the definition of TDD.
If you have a private function, and you are interested in how to test it, this means that you did not do TDD in the first place - and now you have a problem.
To summarize - never write production code before a test. If you follow this rule, each line of code is checked regardless of depth.
source share