DEV Community

Discussion on: What’s an unpopular software opinion you have?

Collapse
 
metacritical profile image
Pankaj Doharey

I once gave Interview at Oracle Cambridge, the a*-wipes think private functions should not be tested because you will call only the public functions.

My Answer : Well, that doesnt mean we dont modify private functions. Use whatever is at your disposal to test them for Ruby use method send, For C# InternalsVisibleToAttribute, For Java Reflection. Do what is required to test them.