Boost logo

Boost Users :

From: Shugar, Ben USC-RR (Ben.Shugar_at_[hidden])
Date: 2006-03-22 17:45:56


Try calling it inside a constructor or calling them from inside a public
test method. Remember the publis test method is just for that purpose

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Leif
Gruenwoldt
Sent: Wednesday, March 22, 2006 11:55 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] [Unit-Test] How to test private functions

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