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
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 list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at