Boost logo

Boost Users :

From: Noel Yap (noel.yap_at_[hidden])
Date: 2006-03-22 14:00:46


I think there is, or was, a big debate about this in the testing
community. Personally, I believe in testing public interfaces and use
cases. If the private function is so involved it needs its own test,
it may be a sign that it belongs in another class (possibly not
published, eg its header file is not be exported).

HTH,
Noel

On 3/22/06, Leif Gruenwoldt <leifer_at_[hidden]> wrote:
> Is there a way to test the private functions of a class without moving
> them into public scope during test?
>
> What are some strategies for this?
>
> I was hoping to add "friend class boost::unit_test::test_suite;" to my
> class but that didn't work.
>
> --
> Leif Gruenwoldt
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net