Subject: Re: [boost] Boost.Test updates in trunk: need for (mini) review?
From: Gennadiy Rozenal (rogeeff_at_[hidden])
Date: 2012-11-04 04:57:53
Thorsten Ottosen <thorsten.ottosen <at> dezide.com> writes:
> Another issue. It would be cool to be able to give access to private
> members in the unit test. So given
> BOOST_AUTO_TEST_CASE( testMyClass )
> I would be able to test private functions with:
> class MyClass
> friend void boost::test::testMyClass();
> // or
> friend class boost::test::access;
I believe you can just name struct testMyClass a friend of MyClass and that's it.
If your test case is within a test suite you'll name to mention it as well
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk