[Interest] Strange undeletable QTemporaryFile. Is it a bug?

Guido Seifert wargand at gmx.de
Sat Aug 24 20:47:42 CEST 2013

> But I'd argue this: why the hell do you need to test the privates? If no one 
> can call them, you should be able to change them freely. You should test only 
> the interface available to others.

Haha, don't let us go down that road. There are two schools of thought, fighting each other. One with your argument, no need to test private functions, if you need testing private functions, then they are to complicated. The other think that is just a rule of thumb.

>From time to time I like to test my private functions. I helps me much better to find borderline cases, which I might overlook otherwise. This does not mean that I don't refactor the functions afterwards. So maybe it is not really 'testing', but a development help. :-)


More information about the Interest mailing list