From: Edward Diener (eldiener_at_[hidden])
Date: 2007-11-18 12:29:31


Robert Ramey wrote:
> Joel de Guzman wrote:
>
> Hmm - and implementation details shouldn't be documented?
> shouldn't be tested? If they're in a common area it seems
> that they are meant to be used by more than one library -
> and indeed they are. lightweight test others come to mind.

If they are public or protected they should be documented for end-users
and other developers respectively. What should be tested is the public
interface, which is normally enough to test whether the protected and
private implementation is working properly.