3 ms·
The most obvious reason is that they're private and not normally reachable from your test code. But even conceptually there are problems with testing private m
by shawnz 5y ago
The most obvious reason is that they're private and not normally reachable from your test code.
But even conceptually there are problems with testing private methods. For example they likely expect to be called only while the class is in some specific state or in the middle of some atomic operation. Otherwise they could have just been made public.