Nov 14, 2023
Yes I totally agree to your point. That's exactly why I've mentioned that private functions shouldn't be tested, it's not meant to be accessed inside your test target as well. But if you really want to test that private function the best way is, you add a public function that would return you a value after your computation in your private function. Although it was my approach, you can definitely suggest a better way.