Weekly Digest #82

Weekly Dev Blog
2 min readJul 4, 2022

Articles

Still No Consensus On Testing Private Methods

Here’s the approach the author proposes: try to have as slim a public interface as possible in your classes, by defaulting every method to private. If you find yourself wanting to test a set of private methods directly, seriously consider extracting a class (or standalone function), but only if it makes sense independent of your testing desires…

--

--